find_definitions
Locate where a function, type, or constant is defined and get its file and line, or search symbol names by wildcard pattern. Use it to find definitions before checking usages.
Instructions
Finds where a function, type or constant is defined and returns one line per definition, with its file and line. Use it to locate a symbol, or to search names by pattern: name may hold .* wildcards, so parse_.* lists every matching name. kind narrows the search to functions or to types; without it constants are found too. For the places that use a name use find_usages; for a text that is no name use search_source. A long list stops at 200 items unless all is true. A name the graph does not hold is answered with an error line, with suggestions when similar names exist.
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": "find_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | List everything instead of stopping at 200 items. | |
| kind | No | function: functions and methods; type: classes, interfaces, structs, enums; any: all, constants included. | any |
| name | Yes | Name; literal text with optional .* wildcards. |