get_symbol
Retrieves verified, line-numbered source for one symbol when another response supplies its ID, with continuation IDs for truncated results.
Instructions
Follow-up read of one symbol whose id another response already gave you.
Not an entry point. get_answer ships symbol_bodies; for a
whole file get_context(include=["skeleton"]) or a Read is one call.
Never walk a file symbol by symbol. Returns verified, line-numbered
source; a truncated result carries the continuation to pass back as
symbol_id.
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": "get_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Alias for symbol_id. | |
| repo | No | Usually omitted. | |
| depth | No | 1 is this symbol alone; 2-3 also return the bodies it calls, transitively, in `callee_bodies`. | |
| query | No | Regex or substring filter on an omission ref's lines. | |
| symbol_id | No | "path/to/file.py::Name", "path/to/file.py:140-180" for a live range, or an omission ref. |