set_wait
Set or update a thread's non-blocking wait deadline; on timeout, notify the owner or park the thread. Cancel it when the awaited event occurs.
Instructions
Set (upsert) a wait timer on a thread: it is waiting until wait_until, and on timeout the sweeper escalates via on_timeout but decides nothing (notify reaches the owner; park also marks the thread unclaimable). Default policy is notify. Cancel it when the awaited thing happens. Requires thread:transition. This returns at once and does not block; to block until something happens, use a wait_for_* tool such as wait_for_result or wait_for_ready.
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>",
"wait_until": "<wait_until>"
},
"name": "set_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | why the thread is waiting | |
| thread_id | Yes | ||
| on_timeout | No | escalation policy on timeout | notify |
| wait_until | Yes | deadline (RFC 3339) |