List directory
list_directoryLists every entry in a folder one level deep, including hidden files and symlinks, so you can inspect a directory's contents.
Instructions
List the entries of one folder, one level deep. Use when: you need what is inside a folder. Instead: walk_tree for a subtree or a capped listing; get_path_info for one path; search_index for indexed names. Behavior: read-only. Every entry, hidden ones too, in the backend's order; a symlink is listed itself (is_link true, is_dir false). No entry cap, but a result over 16 MiB fails. A missing path or a file fails. Time limit: 15 s. Returns: a JSON array of {name, is_dir, is_link, size, modified (ISO 8601 or null)}; structuredContent wraps it as {entries}.
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": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The folder to list (absolute, or relative to the MCP root). Required unless path_b64 is given. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes |