get_file_context
Retrieves a structured AST summary for a file, listing all indexed symbols (classes, functions, imports) with their line ranges for precise code context.
Instructions
Returns a structured AST summary for a given file, including all indexed symbols (classes, functions, imports) and their line ranges.
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": {
"path": "<path>"
},
"name": "get_file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |