Read an attached file
get_attachment_fileRead the CONTENT of a file attached to an issue, in ONE call. No API key needed from you — this is a normal tool call, so never go looking for a credential or try to curl the download URL yourself. An image comes back as an image you can see; text (logs, CSV, PEM, patches, config) comes back as text you can read; anything else as base64 you can write to a file yourself. Size limit 131072 bytes (128KB), or 2MB for an image, because on this connection the bytes have to travel through your context. For anything bigger, run your MCP through retasc mcp-proxy and call this tool again — the proxy downloads the file to disk and hands you the path, at any size. Check bytes on list_attachments or get_attachment first if you want to know before you ask. A link attachment (save_attachment) has no bytes to return; fetch its URL yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment | Yes | Attachment id. |