Find Symbols
find_symbolsLocate symbol definitions like functions, classes, and variables across files or directories, filter by kind and exact match, or outline a single file without reading it fully.
Instructions
Locate symbol definitions (functions, classes, interfaces, methods, types, variables, structs, enums, traits, modules) with filtering by 'kinds' and 'exactMatch'. Pass a single file as 'path' with empty 'name' to get a full symbol outline without reading the whole file.
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_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Symbol name or substring to match (case-insensitive unless exactMatch=true). Leave empty ('') with a file or folder 'path' to list all symbols as an outline. | |
| path | No | File or directory to inspect (relative or absolute; default: '.'). Pass a single file path with empty 'name' to get that file's symbol outline. | . |
| kinds | No | Optional filter by symbol kinds: 'function', 'class', 'interface', 'method', 'variable', 'type', 'struct', 'enum', 'trait', 'module', 'other'. | |
| exactMatch | No | If true, matches exact symbol name; if false (default), matches substring. | |
| maxResults | No | Maximum number of symbols to return (1-500, default: 100). | |
| filePattern | No | Glob pattern to filter files, e.g. '*.ts' or '*.{ts,tsx}'. | |
| includeLocals | No | If true, include local function/method variables. Default: false (focuses on top-level declarations, classes, interfaces, functions, methods, types). | |
| excludePattern | No | Comma-separated glob patterns to exclude, e.g. '**/node_modules/**,**/dist/**'. |