Create approval link
create_approval_linkMake a link to send a person when you need their decision ("Deploy to production?"). It opens a page with your title, message and one button per choice. Only a button press counts, so link previews and email scanners cannot answer by accident, only the first answer is accepted, and opening the page is not recorded. Then call wait_for_approval.
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>",
"title": "<title>"
},
"name": "create_approval_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | The question, shown as the page heading. | |
| choices | No | Button labels (default ["Approve", "Deny"]). The first is highlighted. | |
| message | No | Optional details shown under the title (plain text). | |
| inbox_key | Yes | The inbox_key returned by create_inbox (starts with "porch_sk_"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| next | Yes | ||
| path | Yes | ||
| choices | Yes |