Code Symbols
code_symbolsFinds named symbols in a local codebase: Python classes/functions and JavaScript or TypeScript functions, classes, interfaces, types, and variables. Use when an agent needs code structure before reading files or searching references. Scope: local filesystem only and read-only; skips dependency/build directories and scans at most 2,000 files. Not for call graphs or remote repositories.
How to use code_symbols
Provide only the required inputs below. Start with the smallest scope that answers the task, then review the risk properties before an agent executes the call.
Risk and execution properties
Read only: yes
Destructive: no
Idempotent: yes
Open world: no — operates locally or through configured services
Inputs
pathstringrequiredLocal codebase directory.
querystringOptional case-insensitive symbol-name filter.
file_extensionsarrayOptional filter from .py, .js, .jsx, .ts, .tsx.
max_resultsintegerMaximum symbols returned. Max: 500.
Default: 100
Example input
{
"path": "<string>",
"query": "<string>",
"file_extensions": "<array>",
"max_results": 100
}Browse or search the full 74-tool reference to choose the smallest suitable capability.
Browse all tools →