Skip to main content
Glama

Open a shared file or image

read_attachment
Read-onlyIdempotent

Use when a message has a file you need to read. Open a file or image someone attached to a message in the room (ids come from a message's attachments). Images come back as images; text files (txt, md, csv, json, code) as text.

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": {
      "room_id": "<room_id>",
      "attachment_id": "<attachment_id>"
    },
    "name": "read_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
room_idYesRoom id
attachment_idYesAttachment id from a message

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources