Reference
list_files
Lists the folders and files under a folder, only what you may read.
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
path | string | no | A 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 foldergeneralcan be read by every member, andrawonly 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.