List Zendesk Ticket Comments
list_ticket_commentsRead a ticket's replies and internal notes page by page, newest first, to inspect long threads without dropping the latest comments.
Instructions
Read a ticket's replies and internal notes in full, newest first, a page at a time. Each entry has the comment id, author, time, public or internal, and attachment ids (download: get_ticket_attachments). Prefer it to get_ticket(include_comments=true) on a long thread, whose cut drops the newest comments. Field changes: get_ticket_history.
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": "list_ticket_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Cursor from the previous response; it keeps that sort_order, so drop it when changing sort_order. | |
| page_size | No | Comments per page; bodies are long, so follow the cursor rather than raise it past the response limit. | |
| ticket_id | Yes | Ticket id, from search_tickets or list_tickets. | |
| sort_order | No | "desc" walks back from the latest reply; "asc" reads forward from the opening description. | desc |