Wait for request
wait_for_requestBlock until a request arrives, then return it in full (same shape as get_request). By default it returns the next request not yet returned by wait_for_request for this inbox and these filters, so nothing that arrives between calls is missed, including requests that came in before the first call. Times out after timeout_seconds (default 30, max 300) with timed_out: true; call it again to keep waiting.
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_key": "<inbox_key>"
},
"name": "wait_for_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Start after this request id instead of the saved position. "start" includes everything stored; "latest" waits for something new. Explicit positions are not saved. | |
| method | No | Only requests with this HTTP method, e.g. "POST". | |
| inbox_key | Yes | The inbox_key returned by create_inbox (starts with "porch_sk_"). | |
| path_prefix | No | Only requests whose path (after the inbox URL) starts with this, e.g. "/stripe". | |
| timeout_seconds | No | How long to wait (default 30, max 300). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | Yes | The position after this call. Pass as "after" to continue from here explicitly. | |
| request | No | ||
| timed_out | Yes | ||
| waited_seconds | No |