upload_attachment
Upload a file attachment to a Memos instance by sending base64-encoded content, filename, and MIME type, with optional memo association.
Instructions
Upload a new attachment.
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": {
"instance": "<instance>",
"filename": "<filename>",
"type": "<type>",
"content": "<content>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | Associate with memo (e.g., "memos/123") | |
| type | Yes | MIME type (e.g., "image/png") | |
| content | Yes | Base64-encoded file content | |
| filename | Yes | Filename | |
| instance | Yes | Instance name |