go_to_definition
Find the exact file and line where a symbol—function, method, class, struct, trait, or interface—is defined across the workspace. Get precise declaration locations without manual searching.
Instructions
Finds the exact definition/declaration location of a symbol (function, method, class, struct, trait, interface) across workspace files.
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": {
"symbol_name": "<symbol_name>"
},
"name": "go_to_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| symbol_name | Yes | ||
| directory_path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |