find
Search TypeScript AST symbols by name pattern, kind, and export status using globs or regex. Filter results to find specific functions, classes, or interfaces within a file, directory, or entire project.
Instructions
Search for symbols in the AST by name pattern and kind. Supports glob patterns (*Service), regex (/^get/), and filtering by symbol kind (function, class, interface, string, comment, etc.) and export status.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File or directory path (when scope is file or directory) | |
| kinds | No | Symbol kinds to include | |
| limit | No | Maximum results to return (default: 200, max: 2000) | |
| query | No | Name pattern to match (glob with * and ?, or /regex/) | |
| scope | No | Search scope (default: project) | |
| offset | No | Number of results to skip, for paging through a large set (default: 0) | |
| exported | No | Filter by export status |