get_symbol
Retrieve full source code for specific symbols identified in GitHub repositories using AST parsing to reduce token consumption.
Instructions
Get the full source code of a specific symbol. Use after identifying relevant symbols via get_file_outline or search_symbols.
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": {
"repo": "<repo>",
"symbol_id": "<symbol_id>"
},
"name": "get_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (owner/repo or just repo name) | |
| symbol_id | Yes | Symbol ID from get_file_outline or search_symbols |