workspace_symbols
Search for symbols like functions, types, variables, and constants by name across the workspace or a single file, using the LSP index to return names, kinds, and source locations.
Instructions
Search for symbols (functions, types, variables, constants) by name or substring across the entire workspace — instant, uses the LSP index. Pass uri to restrict the search to that one document instead. Returns names, kinds, and source locations.
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": "workspace_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | Optional: restrict the search to this ONE document (absolute path, file:// URI, or workspace-relative path). Omit it to search the whole workspace. | |
| query | No | Symbol name or substring to search for (case-insensitive) |