autotask_create_ticket_attachment
Upload file attachments to existing Autotask tickets by providing base64-encoded content, with validation for the 3 MB size limit.
Instructions
Upload a file attachment to an existing ticket. The file content must be passed as a base64-encoded string in the data field (MCP is JSON-RPC, so binary bytes must be base64-encoded). Autotask enforces a 3 MB hard limit on ticket attachments; this tool validates the decoded size before calling the API and returns a clear error if the limit is exceeded. Example: { ticketId: 12345, title: "screenshot.png", data: "iVBORw0KGgoAAAANSUhEUgAA..." }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticketId | Yes | The ticket ID to attach the file to | |
| title | Yes | Display title for the attachment (typically the filename, e.g. "screenshot.png") | |
| data | Yes | Base64-encoded file content. Maximum decoded size: 3 MB (Autotask ticket attachment limit). Example: read a file and pass its base64 representation here. | |
| fullPath | No | Original filename including any path. Defaults to `title` if not provided. | |
| contentType | No | MIME type of the file (e.g. "image/png", "application/pdf"). Optional. | |
| publish | No | Visibility: 1 = All Autotask Users (default), 2 = Internal Users Only |