apply_macro
Apply a Zendesk macro to a ticket to update fields and comments, or preview the resulting changes before committing.
Instructions
Apply a macro to a ticket (or preview its effect). Find macros with list_resources(resource='macros') or search via api_request GET macros/search?query=...
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>",
"macro_id": "<macro_id>"
},
"name": "apply_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macro_id | Yes | ||
| ticket_id | Yes | ||
| preview_only | No | true = just show what the macro would change. |