search_symbol
Finds functions, classes, interfaces, types, consts, and enums across files. Returns file location, type, signature, export status; supports fuzzy, regex, and filters.
Instructions
Search for a symbol (function, class, interface, type, const, enum) across project files. Returns file location, type, signature, and exported status. Supports fuzzy matching and regex (e.g. "get.*Context"). Use path_filter to limit search scope. Use context_filter to find symbols by return type or param type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Symbol name(s) to search for. Comma-separated for multi-search: "handleDelete,handleEdit". Supports fuzzy matching and regex: "get.*Context", "handle(Create|Update)". | |
| type | No | Filter by symbol type | |
| path_filter | No | Filter files by path pattern. Supports glob ("src/**/*.ts") or substring ("src/tools"). Comma-separated for multiple patterns. | |
| context_lines | No | Show the first N lines of each matched symbol body. Useful to preview code without reading the full file. Default: 0 (no preview). | |
| exported_only | No | Only return exported symbols (default: false) | |
| context_filter | No | Filter symbols by signature content. Useful to find "all async functions" or "all functions that take a User param" without writing regex. |