Send a letter
send_letterIn this app a call answers with the link to the page where the person checks the letter and sends it themselves. Call request_send and give the person its link.
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": {
"draftId": "<draftId>",
"confirm": "<confirm>"
},
"name": "send_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| draftId | Yes | ||
| contentVersion | No | The contentVersion of the mail the person saw, from its preview or the last change to it. If the mail changed since, nothing is sent and the answer says to show it again | |
| sendAnotherCopy | No | Set true only after the user explicitly asks for another copy of mail that was already sent or paid for in the last 24 hours. Leave it out otherwise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isRetry | No | ||
| orderId | Yes | ||
| schedule | No | Sent with an arrival date: the date it aims to arrive by and the day it goes to the printer, YYYY-MM-DD. It waits until then. | |
| cancellable | No | With an arrival date: whether it can still be cancelled free, before it goes to the printer | |
| currentStatus | Yes | ||
| statusTimeline | Yes | ||
| trackingSupport | No | ||
| lettersRemaining | Yes | ||
| recipientSummary | Yes | ||
| saveReturnAddressNote | No | ||
| suggestSaveReturnAddress | No |