Read Attachment
qubrics_mailbox_read_attachmentRead an email attachment's contents by message and attachment ID; text files are returned inline, while binary or oversized files return metadata and a fresh download link.
Instructions
Use this after finding a message attachment when you need the attachment contents. Text-like attachments are downloaded server-side and returned as text, so agents do not need a generic web_fetch tool. Binary or oversized attachments return metadata plus a fresh download link.
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": {
"message_id": "<message_id>",
"attachment_id": "<attachment_id>"
},
"name": "qubrics_mailbox_read_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Read mode: auto, metadata, text, or resource_link. auto inlines small text attachments. | auto |
| mailbox_id | No | Mailbox public ID when the credential can access more than one mailbox. | |
| message_id | Yes | Message ID containing the attachment. | |
| attachment_id | Yes | Attachment ID from message metadata. | |
| max_text_bytes | No | Maximum text bytes to return inline. Defaults to 262144 and is capped at 1048576. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||