wait_for_capture
Block until the next request arrives at a bin (or a timeout passes), then return it in full. Ideal flow: create_bin → configure the webhook sender → trigger it → wait_for_capture. If after_id is omitted, waits for the next capture after "now". Returns timed_out:true instead of erroring when nothing arrives.
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": {
"bin": "<bin>"
},
"name": "wait_for_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bin | Yes | bin id or slug | |
| after_id | No | return the first capture with id greater than this; default = latest id at call time | |
| timeout_seconds | No | 1-45 seconds to wait (default 20) |