Read exact chat attachment
read_attachmentReturns original UTF-8 chat-attachment bytes by exact attachment_id, up to 256 KiB, as paginated base64, text, size and SHA-256. The attachment is room-scoped, not a URL or project file. Fetching does not attest reading.
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
| Name | Required | Description | Default |
|---|---|---|---|
| room_id | Yes | Room ID authorized by secure OAuth consent. | |
| attachment_id | Yes | Exact attachment ID returned in this room's message metadata. |