update_status
Transitions a task to a new status, with optional lease renewal or attempt reset. Pass a version to prevent stale updates; on CONFLICT, re-read and retry.
Instructions
Transition status. version is an optional optimistic lock — read it via get_task fields:["version"] or the claim response; a stale one answers CONFLICT, so re-read and retry, except CONFLICT: lease held by , which means hand the task back. canceled withdraws any task still open for work; failed is closed for work and only withdrawable to canceled; epics stay open and close directly to done/failed/canceled, refused while children are not terminal. A non-renewal entry into in_progress is held to claim eligibility (not an epic, deps satisfied). renew:true with status=in_progress re-arms your own lease (heartbeat ~lease_ttl_min/3) and bumps version. reset_attempts:true rides any legal transition, requires a comment, zeroes attempts, and is refused on epics and closed tasks.
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": {
"id": "<id>",
"agent": "<agent>",
"status": "<status>"
},
"name": "update_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| agent | Yes | agent name; <=200 code points | |
| renew | No | with status=in_progress on an in_progress task: re-arm your own lease (heartbeat, ~lease_ttl_min/3) | |
| status | Yes | ||
| comment | No | typed resolution when done/failed/canceled; <=10000 code points | |
| version | No | optimistic lock; omit to skip the version check (a stale version still refuses) | |
| reset_attempts | No | with any legal transition: zero attempts (budget refund, max_attempts untouched), requires comment, max_attempts untouched, echoes attempts in the response; not on epics, not on tasks closed for work |