Wait for approval
wait_for_approvalBlock until the person answers an approval link, then return their choice. Returns at once if it was already answered. On timeout, call it again.
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>",
"path": "<path>"
},
"name": "wait_for_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path returned by create_approval_link, e.g. "/approve/AbC123". The full URL works too. | |
| inbox_key | Yes | The inbox_key returned by create_inbox (starts with "porch_sk_"). | |
| timeout_seconds | No | How long to wait (default 30, max 300). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| choice | No | ||
| answered | Yes | ||
| timed_out | No | ||
| request_id | No | ||
| answered_at | No | ||
| waited_seconds | No |