codegraph_node
Read indexed source files with line numbers and dependents, or inspect a symbol's source and relationships to understand code impact.
Instructions
Read an indexed file with line numbers and dependents, or inspect a named symbol with its source and relationships.
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": "codegraph_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File path or basename. Use it alone with codegraph_node to read a file, or with a symbol to select one definition. | |
| line | No | Line used to disambiguate a symbol definition. | |
| limit | No | Maximum lines to return in file mode. | |
| offset | No | One-based starting line in file mode. | |
| symbol | No | Symbol name to inspect. | |
| includeCode | No | Include the symbol body in symbol mode. | |
| 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. | |
| symbolsOnly | No | Return the file's symbol map instead of source. |