get_attachment
Retrieve an attachment by its ID. Returns image content directly, decodes text and JSON, and provides metadata for large files to avoid exceeding size limits.
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. |