get_symbol_definition_code
Retrieve a symbol's definition details—type, documentation, and source location—by providing its file path, line number, and name.
Instructions
Gets definition information for a symbol using hover data (type, docs, source)
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>",
"line": "<line>",
"symbol": "<symbol>"
},
"name": "get_symbol_definition_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | The line number of the symbol (1-based) | |
| path | Yes | The path to the file containing the symbol | |
| symbol | Yes | The symbol name to look for on the specified line |