definition_of
Locate a symbol's definition by full or partial name, returning file:line locations and a provenance indicator so you can quickly jump to the source before editing.
Instructions
Call to jump to where a symbol is defined before reading or editing it. Returns the definition sites with file:line, plus a provenance field saying whether the match was exact (fully qualified), exact (short name), or a substring fallback - so you know how much to trust it.
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": {
"query": "<query>"
},
"name": "definition_of"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Symbol name or name fragment. |