find_symbol
Locate code symbols by exact or partial name and get file:line, kind, visibility, entry-point status, and total matches. Use it instead of grepping when you know part of a name but not its location.
Instructions
Call instead of grepping when you know part of a name but not where it lives. Matches exactly first, then by substring; returns kind, file:line, visibility, and entry-point status for each match, plus the total match count.
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": "find_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max symbols listed (default 20); `total_matches` is always exact. | |
| query | Yes | Name or name fragment. |