aiworkhub_manager_source_graph_query
Query a source graph to discover code structure, dependencies, and impact before file searches, so you can target code discovery, analysis, and review.
Instructions
MANAGER CODE DISCOVERY: use first and continuously before built-in file search.
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": {
"mode": "<mode>",
"query": "<query>"
},
"name": "aiworkhub_manager_source_graph_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Lookup to run: focus, slice, context, file, function, class, body, bodygrep, impact, trace, deps, bundle, diff (a registered worker worktree's changed files, symbols and paged hunks), or an analytic report (hotspots, churn, testmap, calls, ...). | |
| query | Yes | What to look up, non-blank, at most 512 bytes; its meaning depends on mode. In file mode with an exact file target, a 1-based start-end line range returns exactly those lines. | |
| budget | No | Size budget for the reply; default 64, clamped to 8-160. | |
| cursor | No | Page token for analytic modes, bodygrep and diff only (at most 64 bytes, 4096 for bodygrep, 256 for diff): pass the previous next_cursor back unchanged; other modes refuse it. | |
| target | No | Optional scope, at most 256 bytes: an exact symbol (bare name or file.symbol) for slice, body and function modes, the worker request id for diff, otherwise a path prefix; omit for unscoped. | |
| request_id | No | Optional review_ready worker request id; queries then read that sealed candidate (authority_source=candidate_overlay) composed over canonical, read-only. An unknown, not review_ready or drifted request returns ok=false, never canonical. Omit for canonical. | |
| bundle_type | No | Used only by bundle mode: bugfix, feature, refactor, audit, optimize or explore (default). | explore |
| workflow_stage | No | Stage of the work this query supports: orientation, implementation, validation, review, rework or unspecified (default; the server infers the stage). | unspecified |
| continuation_cursor | No | Signed token, at most 1024 bytes, from a previous page of the same query whose response exceeded the output cap; not a bodygrep cursor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||