set_task_state
Report the current state of a claimed task without extending its lease. Use to indicate you are waiting for input or hit an error.
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.
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 |