get_attachment
Download an attachment by ID. Returns image content for images, decoded text for text/JSON, or metadata with base64 for binary files. Files exceeding 5MB return truncated metadata.
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 | No | 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. |