inspect_ast_symbols
Query a workspace's AST symbol table and bidirectional call graph by symbol name or file/line to locate enclosing functions, methods, classes, and trace their callers and callees.
Instructions
Query the AST symbol table and bidirectional call graph of a workspace by symbol name or (file_path, line_number).
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": "inspect_ast_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | Optional in-memory {rel_path: source_code} map. | |
| file_path | No | Relative file path for line-based enclosing symbol lookup. | |
| query_name | No | Function, method, or class name to look up. | |
| line_number | No | 1-based line number for enclosing symbol lookup. | |
| workspace_root | No | Workspace directory path. |