codegraph_search
Find code declarations by symbol name across an indexed project. Returns matching file locations to help you navigate quickly; use explore for full source and relationships.
Instructions
Search indexed declarations by symbol name. Returns locations only; use codegraph_explore when you need source and relationships.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "codegraph_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| limit | No | ||
| query | Yes | Symbol name or partial name. | |
| projectPath | No | Absolute path to the target project or worktree. Pi fills this with the active cwd when omitted; OMP child agents should pass their exact worktree path. |