Get Zendesk Ticket Attachments
get_ticket_attachmentsDownload a Zendesk ticket's attachments to view images inline and access other files by name, type, size, and download URL.
Instructions
Download a ticket's attached files to look at them. Images come inline, other files as references (name, id, type, size, download URL). To only see which files a comment has, use list_ticket_comments. Without attachment_ids it scans up to 10 pages of 100 comments (and says if it stopped): comment files first, then images pasted into email bodies once each, those under 4 KB (signature icons) as references only. An oversized image or one past the embed cap comes back as a reference saying why; past the response budget, the rest are counted as omitted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticket_id": "<ticket_id>"
},
"name": "get_ticket_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket_id | Yes | Ticket id, from search_tickets or list_tickets. | |
| attachment_ids | No | Fetch only these files (ids from list_ticket_comments), even past the page cap; comments are read until all are found. After a full scan an id not on the ticket is named, not fetched; if the scan ends early (page cap, or a page without cursor), a missing id is fetched directly and flagged unchecked. |