Write a letter
compose_letterLays out plain text as a US Letter business letter (a Times-style serif, 12 pt, 1-inch margins) with an optional return address (from), date, inside address (to), subject, closing and signature name. Blank lines separate paragraphs. Supports Latin (including Turkish), Greek and Cyrillic text; no emoji or CJK. An optional signature costs $1: electronic (prints "Signed electronically" and a verification code; needs signature_name and consent) or drawn (prints the PNG image and the same code). Returns a document ID and a private document token.
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": {
"body": "<body>"
},
"name": "compose_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| body | Yes | ||
| date | No | ||
| from | No | ||
| closing | No | ||
| subject | No | ||
| filename | No | letter.pdf | |
| signature | No | ||
| signature_name | No |