get_attachment
Downloads an attachment by ID. Returns images as viewable content, text and JSON as decoded text, and binary files as metadata plus base64 payload. Files exceeding the size limit return metadata only, flagged truncated.
Instructions
Download an attachment by id. Returns image content for image/* types (Claude can describe it natively); decoded text for text/* and application/json (small files); JSON metadata + base64 payload for other binary types (PDF, Office docs, etc.). Files exceeding maxSizeBytes (default 5MB) return metadata only with a truncated: true flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Attachment ID. | |
| maxSizeBytes | No | Refuse to return content over this size (default 5242880 bytes ≈ 5MB; max 26214400 bytes ≈ 25MB). Files exceeding the cap return metadata only with a 'truncated: true' flag. |