file_list
List files and folders in a storage directory via adapter://dir paths, sort by name, date, size, or type, and flag encrypted entries whose contents are unreadable.
Instructions
List files and folders in a directory. Path is adapter://dir (adapter = storage name); empty path lists the first storage's root. An entry with encrypted: true is end-to-end encrypted (inside the encrypted folder named by e2e_root, or a single encrypted .fxe file): filex holds no key, so its content cannot be read here.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "file_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | adapter://dir path to list; empty = first storage root | |
| sort | No | order: name (default), modified, size or type; a leading - reverses it (-modified = newest first). Folders always come before files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes |