ctxGetTaskContext
Auto-detect reference type from issue, PR, commit, or error and compose unified context with linked commits and related traces.
Instructions
Unified context for any issue / PR / commit / error ref. Auto-detects ref type (#42, PR-42, sha) and composes issue + linked commits + related traces. Prefer over raw gh / git tools.
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. | |
| maxLinkedCommits | No | Cap on linked-commits section. Default 10. |