open_folder
Explore a directory's code structure by retrieving a folder graph of files and declarations. Use it to preview what lives under a path before opening specific files or functions.
Instructions
Read-only. L0 folder graph rooted at a path prefix: folder -> file -> declarations. The coarsest orientation move — use it to see what lives under a directory before drilling in with open_file (one file's graph) or read_body (one function's source). Returns a {nodes, edges, manifest} graph.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"root": "<root>"
},
"name": "open_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | repo-relative path prefix to root the folder graph at | |
| format | No | text (compact, default) | json (structured result page) |