zendesk_download_attachment
Download a Zendesk attachment by supplying its URL, filename, and ticket ID. Archives are extracted, PDFs return text, and images are base64-encoded, with an optional custom destination directory.
Instructions
Download a Zendesk attachment. Obtain attachment_url and filename from zendesk_list_attachments. ticket_id is required for cache organization. Optional dest_dir overrides the default cache location; the file is written there and (for archives) extracted alongside it. Archives return a file list and unpack_dir — read individual files with your normal file tools. PDFs return up to ~500KB of extracted text. Images are base64-encoded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_dir | No | ||
| filename | Yes | ||
| ticket_id | Yes | ||
| attachment_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |