Walk folder tree
walk_treeList every file and folder below a path breadth-first up to a set depth, returning live tree entries and reporting truncation or unreadable paths.
Instructions
List the live folder tree under path, breadth-first, to max_depth levels. Use when: you need every file and folder below a path. Instead: list_directory for one level; search_index for the faster, maybe stale index; search_content for contents. Behavior: read-only. Symlinked folders are listed, not entered. Hitting max_entries, or a folder at max_depth left unentered, sets truncated (no cursor: rerun on a subfolder); an unlistable subfolder goes to unreadable. Time limit: 60 s. Returns: {entries: [{path, name, is_dir, is_link, size, modified}], truncated, unreadable: [{path, error}], complete (false when anything was cut or unread)}.
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": "walk_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The folder to walk (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. | |
| max_depth | No | Levels to visit, counted from 1: 1 = path's own entries. | |
| max_entries | No | Most entries to return (files and folders together). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | ||
| complete | Yes | ||
| truncated | Yes | ||
| unreadable | Yes |