codecodebase analysis / code references

Code References

code_references

Find local Python and TypeScript/JavaScript symbol imports, definitions, and references with line-level excerpts.

How to use code_references

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

pathstringrequired

Repository or source directory.

symbolstringrequired

Symbol name to locate.

extensionsarray
max_resultsinteger

Default: 200

Example input

{
  "path": "<string>",
  "symbol": "<string>",
  "extensions": "<array>",
  "max_results": 200
}

Browse or search the full 74-tool reference to choose the smallest suitable capability.

Browse all tools →