Enterprise Ego Docs ENNL Get started
Reference

read_file

Returns the text of a file you may read, for example context/clients/acme/README.md.

Parameters#

NameTypeRequiredDescription
pathstringyesThe full path of the file.

Returns#

The text of the file, wrapped as data with the path in the tag.

Example#

json
{
  "name": "read_file",
  "arguments": { "path": "context/clients/acme/README.md" }
}

Limits#

  • At most 1,000,000 characters of a file are read, and a wrapped text is cut off at 18,000 characters.
  • A file that does not exist, is empty or is not allowed gives the same message.

Related: list_files, Access per folder.