set_task_state
Report a claimed task's session state as working, waiting_input, or errored without extending its lease, so blocked or failed work stays visible to humans and orchestrators.
Instructions
Report the session state of a task you have claimed — working, waiting_input, or errored — without extending the lease. Use this to flag that you are blocked on input or hit an error: the claim stays visible as held-but-stuck instead of faking liveness. Humans and orchestrators see the state via list_tasks/get_task. Fails with 409 if you no longer hold an active claim. Hosted API only.
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>",
"state": "<state>"
},
"name": "set_task_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | The session state to set | |
| detail | No | Free-text detail (max 500 chars, e.g. 'needs prod API key', 'build failed: missing dep') | |
| task_id | Yes | The claimed task ID |