Enterprise Ego Docs ENNL Get started
Reference

list_files

Lists the folders and files under a folder, only what you may read.

Parameters#

NameTypeRequiredDescription
pathstringnoA folder, for example context or context/clients. The default is context.

Returns#

The subfolders (with a trailing slash) and the files under that folder that the person may read.

Example#

json
{
  "name": "list_files",
  "arguments": { "path": "context/clients" }
}

Good to know#

  • Start at context. The folder general can be read by every member, and raw only by the person it belongs to and by the admins.
  • A folder that is empty, does not exist or is not allowed gives the same message.
  • Related: The folders, read_file.