add_attachment
Attach a file to an existing plaintext document. Replaces any prior attachment. Works with UTF-8 text or base64 binary. Refuses if document is encrypted.
Instructions
Attach a file to an existing plaintext document. Replaces any pre-existing attachment for that document (one attachment per doc by design). Refuses if the document is encrypted client-side. Provide either 'content' (UTF-8 text, e.g. markdown) or 'content_base64' (binary, base64-encoded).
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": {
"id": "<id>",
"filename": "<filename>"
},
"name": "add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | UTF-8 text content (mutually exclusive with content_base64). | |
| content_base64 | No | Base64-encoded binary content (mutually exclusive with content). | |
| filename | Yes | Filename for the attachment, e.g. 'plan.md'. Must not contain path separators or equal the reserved name 'dmencblob'. | |
| id | Yes | Target document id (UUID). |