go_to_definition
Jump to the definition of a symbol in Java source code. Provide file path and zero-based coordinates to locate the declaration.
Instructions
Navigate to symbol definition.
USAGE: Position cursor on a symbol reference, returns definition location. OUTPUT: File path, line, column of the definition.
IMPORTANT: Uses ZERO-BASED coordinates. If editor shows 'Line 14, Column 5', pass line=13, column=4
Requires load_project to be called first.
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": {
"filePath": "<filePath>",
"line": "<line>",
"column": "<column>"
},
"name": "go_to_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| filePath | Yes | Path to source file (absolute or relative to project) |