Change the letter's words
set_letter_wordsChange the words of a previewed letter without previewing it again. Give the draftId from the preview, bodyText and signOff in full, as the letter previews take them, and the wordsVersion of the words being replaced, from the preview or the last change of words. The letter card can change the words too: if they changed since you saw them, nothing is changed, and the answer gives the words as they are now. The letter is laid out again in its stationery on up to three pages: a longer letter prints on both sides and is paid with Pay & Send, and a gift letter stays on one page.
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>",
"bodyText": "<bodyText>",
"signOff": "<signOff>"
},
"name": "set_letter_words"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | The draftId from a letter preview | |
| signOff | Yes | The closing and signature in full (e.g., 'Love, Pat') | |
| bodyText | Yes | The letter's body in full: it replaces the words the preview has | |
| wordsVersion | No | The wordsVersion of the words this change replaces, from the preview or the last change of words. The letter card can change the words too: if they changed since, nothing is changed, and the answer gives the words as they are now |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Present only for a letter of more than one page: the pages it prints on, both sides of the paper. No letter pack or gift letter pays for it; it is paid with Pay & Send. | |
| draftId | Yes | ||
| message | Yes | ||
| canSendNow | Yes | Whether the balance or a gift letter pays for the letter as it is now: new words can change its pages, and so its price | |
| mailService | No | With the terms, for a letter that is certified mail now, and for a sent letter that went by it: which service. Absent beside the delivery words: ordinary mail | |
| wordsVersion | Yes | The version of the words now, for the next change of them | |
| deliveryClass | No | With the terms, for a letter that is certified mail or while certified mail is offered, and for a sent letter: how it is delivered, as a new preview would say it. A card draws it on its Delivery line | |
| contentVersion | No | The version of this mail as it is now: send it with the send, so what is mailed is what the person saw | |
| sendEligibility | Yes | ||
| reasonCannotSend | No | ||
| deliveryDisclaimer | No | With it, the words that qualify the delivery | |
| contentVersionBefore | No | The version of this mail the change was made to: for the preview card, which takes contentVersion only when this is the version it shows |