Investigate Codebase
investigate_codebaseInspect source structure, symbols, references, callers, callees, and impact by mode to locate definitions and trace dependencies in a local repository.
Instructions
Điều tra kho mã nguồn Tier 2: 'outline' (chữ ký class/hàm/docstring), 'symbol' (định nghĩa và references bằng Jedi), 'grep' (văn bản/regex), 'ast' (mẫu cú pháp), 'callers' (ai gọi symbol), 'callees' (symbol gọi ai), 'impact' (phụ thuộc bị ảnh hưởng). Với callers/callees/impact, truyền tên symbol vào query và dùng subpath để chọn file định nghĩa khi tên bị trùng. Impact dùng depth 1–5 (mặc định 2). Các chế độ này yêu cầu index CodeGraph cục bộ.
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": {
"project_id": "<project_id>",
"mode": "<mode>"
},
"name": "investigate_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| depth | No | ||
| query | No | ||
| subpath | No | ||
| project_id | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||