Get symbol code
get_symbolRetrieves the full source code for a specified symbol in a module file, with configurable surrounding lines, to help inspect implementations and dependencies.
Instructions
Get the full code for a specific symbol
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": {
"module": "<module>",
"file": "<file>",
"name": "<name>"
},
"name": "get_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| name | Yes | ||
| root | No | Project root directory (defaults to cwd) | |
| module | Yes | ||
| padding | No | Lines of padding around symbol |