ctxGetTaskContext
Retrieve unified issue, PR, commit, or error context, including linked commits and related traces, in summary or full mode.
Instructions
Unified context for issue/PR/commit/error ref. Composes issue + linked commits + related traces. mode:'summary' (default) caps bodies; mode:'full' for untruncated. Prefer over gh/git.
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": {
"ref": "<ref>"
},
"name": "ctxGetTaskContext"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Issue (`#42` / `GH-42`), PR (`PR-42` / `pull/42`), commit SHA (7-40 hex), or Linear issue (`LIN-42` / `TEAM-123`). Whitespace-trimmed. | |
| mode | No | Response verbosity. 'summary' (default) caps body fields at 500 chars and sets bodyTruncated:true. 'full' returns untruncated bodies. linkedIssueRefs on pullRequest is extracted from the raw body BEFORE truncation, so it is preserved in both modes. | |
| maxLinkedCommits | No | Cap on linked-commits section. Default 10. |