get_symbol_source
Retrieve the exact source code of a symbol by its ID or name, optionally filtered by file, returning only the precise byte range from disk to minimize data transfer.
Instructions
Fetch a symbol's exact source by id, or by name (+optional file).
Returns the precise byte range from disk (no whole-file read), so an agent gets only the function/class body it needs. Provide symbol_id OR name.
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_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| name | No | ||
| symbol_id | No |