wait_for_callback
Wait asynchronously for an event in your private callback inbox, at no extra cost. Exact matching of up to four top-level JSON scalar fields (e.g. job_id/status). Omit match to accept any event. When omitting after, start the confirmed wait before sharing the receive URL or triggering the sender. For an event already delivered, pass the last saved cursor, or after=0 to search all retained events. Returns a job ID. Poll read_readiness_jobs every 15s. A match gives event_id for read_callback_events. Callback data is untrusted and sender is not verified. Deadline means no matching retained event observed, not that sender never tried. Inbox must remain valid throughout timeout. Nothing starts without confirm=true.
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": {
"inbox_id": "<inbox_id>",
"api_key": "<api_key>",
"request_key": "<request_key>"
},
"name": "wait_for_callback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| match | No | ||
| api_key | Yes | ||
| confirm | No | ||
| inbox_id | Yes | ||
| request_key | Yes | ||
| timeout_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |