goto_definition
Jump from a 0-based position to a symbol's definition, type definition, implementation, or declaration. Returns a token-capped file:line result for efficient code navigation.
Instructions
Jump from a 0-based position to a definition (semantic). kind: definition (default)|type_definition|implementation|declaration. → capped file:line. For usages, use find_references.
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>",
"character": "<character>"
},
"name": "goto_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | definition (default)|type_definition|implementation|declaration. | |
| line | Yes | 0-based line. | |
| path | Yes | Source file containing the symbol. | |
| backend | No | ||
| character | Yes | 0-based column. | |
| maxResults | No | ||
| projectPath | No |