Skip to main content
Glama

Download an attachment of a message

get_attachment
Read-onlyIdempotent

Download one attachment of a received message, by the index shown in read_message. Returns text files (txt, csv, md, json, ics, ...) as readable text and other files as an embedded base64 resource; with format "text" also PDFs and (if…

Instructions

Download one attachment of a received message, by the index shown in read_message. Returns text files (txt, csv, md, json, ics, ...) as readable text and other files as an embedded base64 resource; with format "text" also PDFs and (if enabled) images as their text, which is much cheaper to read. Blocked attachments (blocked in read_message) cannot be downloaded. To pass a file on, use forward_message or attach it with from_message in send_message instead of downloading it. Changes nothing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMessage id from list_messages
indexYesAttachment index from read_message.attachments
formatNoauto: text files as text, others as file; text: the readable text of any file (PDF, image, text); file: always the file as base64auto

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "auto",
      +  "description": "auto: text files as text, others as file; text: the readable text of any file (PDF, image, text); file: always the file as base64",
      +  "enum": [
      +    "auto",
      +    "text",
      +    "file"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.3.2
    • addedInput schema / properties / index / description
      Added value: +"Attachment index from read_message.attachments"
  3. First observedv0.1.0

TDQS

Score is being calculated.