Check a preview
get_draft_statusUsed by Letter IRL's preview card: says whether a previewed letter or postcard is still ready to send, has been sent (with its order id and where that order stands), or has expired.
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>"
},
"name": "get_draft_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | The draftId from a letter or postcard preview |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | A ready postcard our renderer drew, while its sizes or layouts are offered: its size now. Its page goes to the card | |
| pages | No | A ready letter of more than one page: the pages it is laid out on now | |
| place | No | The place the greeting names | |
| layout | No | With it, the postcard's front now | |
| status | Yes | ||
| caption | No | The border's caption, when it has one | |
| draftId | Yes | ||
| orderId | No | The order the draft became, once sent | |
| signOff | No | ||
| bodyText | No | A ready letter, while a letter's words can be changed in place (room to write, or the words editor): its words now, for the card | |
| schedule | No | Arrival dates, YYYY-MM-DD: a ready draft's, or a sent order's | |
| signature | No | A ready letter our renderer drew, while signatures are offered: whether it prints the person's saved signature now; its page goes to the card | |
| canSendNow | No | A ready letter while room to write or certified mail is offered, or a postcard while its sizes or layouts are: whether the balance or a gift letter pays for it now | |
| stationery | No | A ready letter's stationery now, while stationery is offered; its page goes to the card | |
| cancellable | No | A sent draft's order: whether it can still be cancelled free | |
| 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 | |
| orderStatus | No | Where a sent draft's order stands: scheduled while it waits for its mail date | |
| wordsVersion | No | While a letter's words can be changed in place: the version of the letter's words, which set_letter_words takes to say which words it replaces | |
| 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 | No | ||
| deliveryEstimate | No | A ready draft's delivery estimate, with its dates now | |
| reasonCannotSend | No | ||
| deliveryDisclaimer | No | With it, the words that qualify the delivery |