Codebase structural query
codebase_structural_querySubmit a code-graph index (nodes and typed edges) plus one structural query; get a deterministic graph answer — descendants, ancestors, blast radius, shortest typed path, stats, or snapshot — aggregate-first (counts and kind breakdowns; full node lists only on expand). Never answers from an index declared stale.
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": "codebase_structural_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | No | The code-graph index: {nodes: [{id, kind}], edges: [{from, to, kind}]}. | |
| index | No | Index metadata: {stale: bool} — a stale index is never answered from. | |
| query | No | The query: {intent: descendants|ancestors|blast_radius|path|stats|snapshot, target, target_b, expand}. |