find_ast_usages
Locate genuine usages of any function or class in your codebase via AST parsing, filtering out comments, strings, and unrelated occurrences to show exact call sites.
Instructions
AST-based lookup of real call sites / instantiations of a function or class. Filters out string literals, comments, and non-call occurrences.
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": {
"symbol_name": "<symbol_name>"
},
"name": "find_ast_usages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| symbol_name | Yes | ||
| directory_path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |