get_task_status
Check a dispatched task's current state without blocking, including progress, resource waits, failures, and optional output details.
Instructions
Report a dispatched task's current state without blocking.
Args:
task_id: Identifier returned by start_task or resume_task, or a unique prefix of at
least 8 characters; a prefix reply carries resolved_from.
include_tail: If True, include the full last_output_tail (20 lines × 2000 chars each);
if False (default), the tail is omitted for running/completed tasks and shortened
to 5 lines × 500 chars for failed tasks. The caller can request the full raw stream
log path from raw_stream_log in full detail for complete output, or use get_task_events for
normalized events.
brief: Compatibility alias for detail="compact"; preserves the complete summary.
include_tail=True still explicitly requests the full tail.
detail: "compact" (default) omits static execution metadata and detailed outcome probes;
"full" returns complete MCP status. Both retain the complete summary/report,
approval attention, failure diagnostics and recovery uncertainty.
include_successors: Fetch the first authorized page of successor IDs. Defaults false:
ordinary polling includes a detail reference without scanning retained task history.
A task still waiting for its resources has no record yet: it reports status: "running",
launch_state (waiting_for_resources, granted, uncertain, or not_started once it
settled without starting, with not_started_reason) and resources (names, queue position,
blocked_by, deadline). See docs/resources-and-worktrees.md.
Full detail returns the task's status, summary, enforcement, and recent_activity — a list of ≤ 5 one-line
strings describing the most recent meaningful events (tool calls, failed tool results, assistant
messages, notices). For running tasks this gives a live summary without the bulk of the
raw stream. These lines deliberately collapse whitespace and truncate to stay short — they are
a summary only; the stored event log (see get_task_events) and every stored or delivered
message keep their original text intact. total_cost_usd is null for backends that do not
report cost — Codex, vibe and Antigravity report tokens only or nothing (vibe reports neither
cost nor tokens nor a turn count).
enforcement states what the run's restrictions actually amounted to, and mcp_servers (where
the backend reports them) shows what the agent loaded. owner identifies execution/output
capture; dispatch_origin and dynamic responding_server distinguish the requester from this
reader. observation_mode is owner, attached, recovered or unknown. A same-origin normal
attachment reports recovered: false; another reader or missing process-generation evidence
reports true with an explanation. PID differences alone do not establish owner loss.
Live, recovered and brief snapshots include artifact_summary with a bounded count and
state (available or unavailable). Supported standalone owners may include detail_ref:
{"tool": "get_task_artifacts", "task_id": "..."}, for explicit paged metadata reads.
Unsupported or unverifiable ownership returns unavailable without a detail reference;
a supported owner with an unreadable manifest may retain the reference for diagnostics.
Artifact registration is a reference, not proof of valid contents, successful execution,
or permission to copy or publish. Availability does not verify content integrity.
parent_task_id links a resume to its source; continuation_of_task_id links a new-session
continuation. successor_tasks derives the reverse links from retained, authorized headers,
when include_successors is true; otherwise only a detail reference is returned.
Incompleteness and pagination are explicit. These links do not transfer reminders
or subscriptions to the successor.
Confirmed usage limits add failure_diagnostic (category, reason, source, and optional
provider-supplied reset_at). It is retained during process settlement and after failure;
a running status during settlement does not authorize a replacement dispatch.
Terminal outcome records starting and ending Git observations and diff statistics.
new_commits means newly reachable from the observed comparison base, including imported history;
task-created commits and authorship are unavailable. Branch/HEAD are endpoint observations
only; intermediate transitions are unobserved even when endpoints match. It also records
local upstream comparison, optional bounded phase/probe diagnostics and partial-result status,
and best-effort structured tool evidence for external file writes
and the last build/test command. Missing evidence is null, including pushed state without
observed publication evidence. These shared-repository observations do not establish task
authorship or goal completion. Old records without captured outcomes return null.
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": {
"task_id": "<task_id>"
},
"name": "get_task_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | No | ||
| detail | No | compact | |
| task_id | Yes | ||
| include_tail | No | ||
| include_successors | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||