get_ticket_attachment
Fetch a ticket attachment's content by UUID. Returns text/CSV inline, images as viewable blocks, and writes other file types or large files to disk via save_to.
Instructions
Fetch one attachment's CONTENT, having found its uuid with list_ticket_attachments. What comes back depends on what the file is, because a tool result is text and most files are not: a text or CSV attachment is returned inline as text; an image is returned as an image block, which is the only form the model can actually look at; anything else — a PDF, a spreadsheet, a document — cannot cross this boundary as text at all, and needs save_to. Pass save_to for any file you want on disk, and for anything large: it writes the bytes to that path on the machine THIS SERVER runs on (normally the same machine as the agent, since the client starts it as a subprocess) and returns the path and size instead of the content. Files over 4 MB always need save_to, whatever their type, because an inline result that size costs more context than the answer is worth. Missing, still uploading, deleted, or on a ticket you cannot open are all the same 404.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to | No | Absolute path to write the file to, on the machine running this server. Parent directories are created. An existing file is overwritten | |
| task_uuid | Yes | The ticket's uuid, from list_tickets, get_board or search | |
| attachment_uuid | Yes |