action microsoft_add_message_attachment { label: "Add message attachment" description: "Attach a file to a draft message. Content is base64-encoded and limited to 3 MB; use it before sending the draft." provider: microsoft method: POST path: "/v1.0/me/messages/{message_id}/attachments" scopes: ["Mail.ReadWrite"] input: @json { { "type": "object", "required": ["message_id", "@odata.type", "name", "contentBytes"], "additionalProperties": false, "properties": { "message_id": { "type": "string", "description": "Draft message id." }, "@odata.type": { "type": "string", "enum": ["#microsoft.graph.fileAttachment"], "description": "Always #microsoft.graph.fileAttachment." }, "name": { "type": "string", "description": "Attachment file name." }, "contentBytes": { "type": "string", "description": "Base64-encoded file content." }, "contentType": { "type": "string", "description": "MIME type, e.g. text/plain." } } } } output: @json { { "type": "object", "additionalProperties": true, "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "size": { "type": "integer" } } } } }