Hand a thread to a human
cooper_handoff_threadUse this when a thread needs a human, or to read that state. Requires auth. Inputs: inbox_id (omit when this key is limited to one inbox), thread_id, action (mark or status), optional reason (at most 500 characters) for mark. mark pauses agent sends on that thread and notifies verified owners. status reads needs_human or resolved. The agent cannot resume. The owner resumes with POST /api/v1/owner/agents/{inbox}/threads/{thread_id}/resume. Mail already sent is not recalled. A send on a paused thread is HTTP 409 thread_needs_human. An unknown thread is HTTP 404 thread_not_found. COOPER_HUMAN_HANDOFF=off returns HTTP 503 handoff_disabled. The default is on. Same as POST and GET /api/v1/inboxes/{id}/threads/{threadId}/handoff.
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": {
"thread_id": "<thread_id>",
"action": "<action>"
},
"name": "cooper_handoff_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | mark or status. | |
| reason | No | Why a human is needed. At most 500 characters. Used when action is mark. | |
| inbox_id | No | Inbox id, username, or email. Omit it when this key is limited to one inbox. | |
| thread_id | Yes | Thread id (thr_…). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object | No | thread_handoff. | |
| reason | No | Why the thread was paused, or null. | |
| status | No | needs_human or resolved. | |
| inbox_id | No | Inbox id. | |
| thread_id | No | Thread id. | |
| created_at | No | ISO-8601 time it was marked, or null when it was never marked. | |
| resolved_at | No | ISO-8601 time the owner resumed it, or null. |