Create Article Attachment
create_article_attachmentUploads a base64-encoded file to a Zendesk Help Center article and returns the new attachment's id, name, type, and size. Use it to attach images or documents referenced in article content.
Instructions
Upload a file to an article and return the created attachment (id, name, type, size). A second call adds another copy. Existing ones: list_article_attachments; ticket files: get_ticket_attachments.
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": {
"article_id": "<article_id>",
"file_name": "<file_name>",
"file_base64": "<file_base64>"
},
"name": "create_article_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | File name with extension (e.g. "screenshot.png"), used for download. | |
| article_id | Yes | Article id, from list_articles or search_articles. | |
| file_base64 | Yes | The file's raw bytes, base64-encoded; the server decodes them before upload. The length cap is about 7.45 MB of file; the HTTP transport also caps request bodies at 4 MB. | |
| content_type | No | MIME type, e.g. "image/png". | application/octet-stream |