Create or change signature
set_signatureCreate or update a named mailbox signature with cleaned HTML, plain text or inline images, and set it as the default for the mailbox or a send-as address.
Instructions
Create or change a named signature of a mailbox (needs the signatures permission). Give html, text or both: without text, the plain-text version is derived from the HTML. The HTML is cleaned to a safe subset (no scripts, forms, event handlers or remote CSS); images are https URLs or inline images referenced as cid: and passed in images (PNG, JPEG or GIF, at most 6 and 512 KB together). Omitted fields keep their value; images replaces all images; html "" makes it text only. The first signature of a mailbox becomes its default; make_default (with for_address for a send-as address) changes the default. The owner is notified of every change.
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": {
"account": "<account>",
"name": "<name>"
},
"name": "set_signature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Signature HTML (a fragment, at most 64 KB before cleaning); "" removes the HTML. | |
| name | Yes | 1 to 40 lowercase letters, digits or '-', e.g. "behoerden". | |
| text | No | Plain-text version (at most 4 KB, 30 lines); derived from html when omitted. | |
| images | No | Inline images; replaces all images. | |
| account | Yes | Mailbox alias or email address from list_accounts. | |
| for_address | No | With make_default: a send-as address of the mailbox instead of the whole mailbox. | |
| make_default | No | Make it the default signature of the mailbox, or of for_address. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| account | No | ||
| created | No |