Query aictrl project context
query_contextRead project context in exactly six domains: code, system (architecture, data model, APIs, roadmap), issues, backlog (epics and tasks), agent skills, and stack layers. Most actions read stored, indexed context such as the knowledge graph. Live GitHub reads: issues/read returns the current GitHub issue and latest comments; issues/list with query searches issue titles and bodies live (params.repoFullName is required, with optional state/label); issues/context, overlap and list without query use stored issue context. code/read can fetch file content from repositories connected to the organization. Use backlog list/get actions to find existing epic and task UUIDs before calling update_backlog. Task references also accept #123, owner/repo#123 or https://github.com/owner/repo/issues/123 from connected repositories; bare numbers must be unambiguous. Read-only: it does not create, change, or delete backlog, workflow, or GitHub data. Not for workflow runs or task executions: use list_workflow_runs to discover runs, get_workflow_run for a known run ID, and get_task_execution for an execution ID returned by start_task.
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": {
"organization_id": "<organization_id>",
"domain": "<domain>",
"action": "<action>"
},
"name": "query_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Primary search term, file path, symbol, or ID (e.g., "UserService", "#123", "coding-standards"). For domain=skills with action=load, the primary form is the human-readable skill name returned by list/recommend (e.g., "writing-gherkin"); a skill UUID is still accepted and loads by ID. | |
| action | Yes | Query type. Valid actions depend on the domain; actions are NOT shared across domains. Valid actions per domain — code: search, context, impact, callers, deps, plan, traverse, skeleton, edge_query, batch_context, read, co_changes, churn, authors, recent_prs_for_file, pr_history_for_subsystem, subsystem, layer, neighbourhood, pr_context; system: entity, model, enum, lineage, api, architecture, subsystem, roadmap, feature; issues: context, list, overlap, prs_for_issue, read; backlog: list, get, list_epics, get_epic, list_tasks, get_task; skills: list, recommend, list_files, load; stack: list_layers, list_agents, get_layer. "list" is supported only by: issues, backlog, skills; "get" is supported only by: backlog. Any other domain/action pair returns invalid_action. Notes: issues/context reads stored KG, issues/read reads the live GitHub issue and latest comments (params.repoFullName + params.issueNumber); backlog list defaults to epics (params.type="tasks" + epic_id for tasks), backlog get takes query=ID (UUID or legacy epic/task ID) and resolves it through tenant-scoped lookups. Backlog lists accept params.limit (default 50, maximum 100) and params.cursor from pagination.next_cursor; list_epics status is draft|planning|active|review|done|blocked; task lists accept params.status as an array of draft|ready|active|review|done|blocked|cancelled. Task lists return summary records without description; use get_task for the full description. | |
| domain | Yes | The area of the project to explore. | |
| params | No | Additional filters or options like depth, limit, type, or start_line. | |
| version | No | API version (default: v1) | |
| organization_id | Yes | AICtrl organization ID returned by list_organizations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| result | Yes | ||
| coverage | No |