Compile One-Shot Task Subgraph Context Pack
get_task_contextCompile a complete architectural context pack for a coding, bugfix, or refactoring task in one call. Resolve anchor symbols, trace side-effects and callers, and get a surgical file read plan before fetching code.
Instructions
Compile a complete, token-compact (<4 KB) architectural context pack for a coding, bugfix, or refactoring task in a single call. Use when starting a feature, bugfix, or refactoring task to get the full architectural subgraph upfront before calling find_symbol or fetch_code_snippets. Given a natural-language task symptom, route, or domain keywords, resolves diversified anchor services/controllers/methods, expands 1-hop outbound side-effects (caches, queues, external calls) and inbound callers/endpoints, computes canonical owner services for every touched database table, checks module import cycle safety, flags ratcheted legacy debt traps in touched files, and returns a surgical file read plan.
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": "get_task_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Required task symptom, feature description, route, or space-separated domain keywords (e.g. 'revoke api key usage limit' or 'DELETE /oauth/register/:clientId'). | |
| maxAnchors | No | Maximum number of diversified anchor symbols to include across matched concepts (3 to 15; default: 8). | |
| includeGates | No | When true, includes active Semantic Invariant Gates and flags any ratcheted legacy debt traps inside the matched subgraph files. Default: true. | |
| workspacePath | No | Optional absolute path to the target workspace root directory. Omit to use the bound workspace, active client root, or sticky session workspace. |