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).
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 |