goto_definition
Navigate directly to symbol definitions in Android source code using LSP to understand framework internals and resolve code references.
Instructions
Resolve the definition of a symbol at a specific position (Requires LSP).
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": {
"class_name": "<class_name>",
"line": "<line>",
"character": "<character>"
},
"name": "goto_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_name | Yes | ||
| line | Yes | ||
| character | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |