AgentMail

get_attachment

Fetch an attachment from a message as base64 (max ~1.5 MB — larger files must be opened in webmail). Use the filename from read_message's attachment metadata.

Remote faivelo/mail

Remote (network-hosted)

Other tools also called get_attachment? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "uid": {
      "type": "integer",
      "description": "Message UID"
    },
    "folder": {
      "type": "string",
      "description": "IMAP folder name (default \"INBOX\")"
    },
    "mailbox": {
      "type": "string",
      "description": "Full mailbox address"
    },
    "filename": {
      "type": "string",
      "description": "Attachment filename from read_message"
    }
  }
}