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. Omit after to consider only new events; use a saved cursor to include earlier retained events. Returns job ID, not a held connection. Poll read_readiness_jobs every 15s; matched 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 |