Set response
set_responseChoose what Porch sends back to callers, for the whole inbox or a sub-path: status, headers and body. Useful for webhook verification handshakes, or a friendly page after an OAuth redirect (or a 302 with a Location header). Pages are served in a browser sandbox: scripts and forms do not run. Pass reset: true to go back to the default.
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": "set_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body (up to 64 KB). | |
| reset | No | Remove the response set for path_prefix and fall back to the default. | |
| status | No | HTTP status code (default 200). | |
| headers | No | Extra response headers, e.g. {"Location": "https://example.com/done"}. | |
| inbox_key | Yes | The inbox_key returned by create_inbox (starts with "porch_sk_"). | |
| path_prefix | No | Apply to this path and everything below it (default "/", the whole inbox). The longest matching prefix wins. | |
| content_type | No | Content-Type of the body (default text/plain, or text/html if the body starts with "<"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| response | Yes | ||
| applies_to | Yes |