Add Public Comment
add_public_commentAdd a public reply to a Zendesk ticket, with optional file attachments, to notify and update the requester. Use it for requester-visible responses; choose an internal note for agent-only comments.
Instructions
Add a public comment (visible to requester) to a ticket, optionally with file attachments (uploaded via the Zendesk Uploads API and carried on the comment). The comment is appended to the ticket thread and emails the requester; use add_private_note instead for an internal, agent-only note.
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>",
"body": "<body>"
},
"name": "add_public_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Comment text sent to the requester; visible in the ticket. Markdown is rendered (**bold**, lists, links): wrap code, identifiers containing _ or * and <placeholders> in backticks so they show literally. HTML is not rendered (tags show as literal text), so do not send HTML. | |
| ticket_id | Yes | Ticket ID — the numeric id of the ticket to reply on. Obtain it from search_tickets or list_tickets. | |
| attachments | No | Files to attach to this comment (base64-encoded content). |