Ranked code and documentation chunks for a question or a few keywords. Full-text search with graph expansion (and optional embedding reranking), returned inside a token budget.
Call it when you need to find where something lives or how it works, before opening any file.
Parameters of code_query| query* | string | Question or keywords to search for. |
| limit | integer | Maximum number of results, up to 100. |
| maxTokens | number | Token budget for the whole response across all selected workspaces, 32 to 100,000 (default 4,000). |
The AST outline of one file: functions, classes, and exported symbols with line numbers.
Call it when you only need a file's structure. It costs a fraction of reading the file (about 50 tokens against 3,000 in the tool's own description).
Parameters of code_outline| path* | string | Relative or absolute path to the file inside the workspace. |
Graph-adjacent context for a symbol or a file: the code that calls it, imports it, or sits next to it in the graph.
Call it when you are about to change a symbol or file and need to know what depends on it.
Parameters of code_context| symbolOrPath* | string | A symbol name or a file path. |
| hops | integer | How far to follow the graph, 1 to 5. |
| limit | integer | Maximum records per workspace (default 50, up to 200). |
| maxTokens | number | Token budget for the whole serialized response, 32 to 100,000. |
The raw graph nodes and edges around a label or a node id, with their relationship types such as imports, calls, and defines.
Call it when you want to inspect relationships directly instead of reading ranked text.
Parameters of graph_neighbors| nodeId | string | Start from this node id… |
| label | string | …or from the node with this label. |
| edgeTypes | string[] | Only follow these edge types. |
| depth | integer | Traversal depth, 1 to 5. |
| limit | integer | Maximum nodes and edges per workspace, up to 200. |
| maxTokens | number | Token budget for the whole serialized response, 32 to 100,000. |
Analyzes a git diff and returns the affected AST symbols with their callers and callees. By default it covers tracked staged and unstaged changes; untracked files are not included.
Call it when you are reviewing a change and want to know what it touches.
Parameters of diff_context| ref | string | Git ref or commit range, for example HEAD~1, main, or origin/main. |
| staged | boolean | Analyze only staged changes. |
| limit | integer | Maximum callers per symbol, up to 50 (default 5). |
| maxTokens | number | Token budget, 32 to 100,000. The formatted summary is dropped before structured symbols and files. |