Save a document from text
attachment_create_textSave text as a private document the user can attach to a briefing: a .md or .txt filename and up to 131,072 bytes of UTF-8 per call (bytes, not characters). For longer text, decide partCount before sending anything — up to 8 parts of at most 131,072 bytes each covers the full 1,048,576-byte cap — split at line breaks, never inside a word, and send every part with the same idempotencyKey, filename and partCount, part numbered from 1. The parts are joined exactly as sent, in part order, with nothing added between them, so keep the line break at the end of every part but the last; the part count cannot change once a part is saved. Text mostly in a script other than Latin, or in emoji, goes in parts of half that size: some clients escape those characters, and a part that grows past the request limit on the way never arrives. Saves privately and shares nothing by itself — draft_package's attachmentVersionIds is what attaches it to a briefing, and the user's own approval at confirm_send is what sends it. Pass the same idempotencyKey on a retry to avoid saving twice.
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": {
"filename": "<filename>",
"text": "<text>"
},
"name": "attachment_create_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | This part's number, from 1 to partCount. Omit for a single-call document. | |
| text | Yes | This part's text, in the user's own words where they gave them. | |
| title | No | A short title for the document. Defaults to the filename. | |
| filename | Yes | The filename, ending .md or .txt. | |
| partCount | No | How many parts this document is split into. Omit, or pass 1, for a single call. | |
| idempotencyKey | No | A key of your own choosing; the same key with the same content returns the same document instead of saving again. Required once partCount is more than 1. |