find_definition
Locates where a class or function is defined by name, returning all matching files for disambiguation. Supports optional kind and source filters to narrow results.
Instructions
Find where a symbol is defined. Looks up Class/Function entities by name. Returns all matches across files (let the caller disambiguate). Optional kind filter ('Class' or 'Function') and source_id to scope to one indexed source.
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_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| name | Yes | ||
| source_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |