Find definitions by name
go_to_definitionLocate definition sites for any name across the indexed workspace. Optionally rank results by proximity to a reference file, and automatically build missing indexes on first call.
Instructions
Definition sites of a name across the indexed workspace, nearest to the optional file first. If the index for root does not exist yet it is built automatically (first call may be slow).
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": {
"name": "<name>"
},
"name": "go_to_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | reference file for proximity ranking | |
| name | Yes | definition name | |
| root | No | index root to query; required when several indexes exist | |
| limit | No | max definitions returned (default 50, hard max 200) | |
| offset | No | skip the first N definitions before applying limit |