graph_traverse
Traverse a project index without loading full file bodies: inspect node metadata, resolve relevant notes, skills, rules, files, and symbols, then open capped file or symbol spans.
Instructions
Traverse the project index without loading bodies. node|children return metadata; resolve finds relevant notes, skills, rules, files and symbols with size estimates; open retrieves one file or symbol span capped at 4096 UTF-8 bytes by default.
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": {
"action": "<action>"
},
"name": "graph_traverse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Node id (required for node/children/open), e.g. rule:rust-own-borrow-over-clone, skill:code/rust, code:src/lib/graph/traverse.ts, vault:projects/<slug>/context.md | |
| full | No | open: return the whole file instead of the 4KB cap | |
| task | No | Task text (required for resolve) | |
| limit | No | Max children/resolve items (default 100/30, max 1000) | |
| action | Yes | Traversal action | |
| max_bytes | No | open: maximum UTF-8 content bytes to return (default 4096; max 8388608) | |
| offset_bytes | No | open: UTF-8 byte offset for the next page (default 0) | |
| workspace_path | No | Absolute thread workspace directory; must map to this project. Omit only when the server cwd is the thread workspace. |