Apply canned action
Apply a canned action to a ticket as a reply or a private note and submit it.
MCP tool happyfox_write → apply_canned_action
write Confirm
Picks the canned action in the ticket editor, fills in its response and property changes, and submits. mode reply emails the contact; mode private_note does not. The action must be defined for the ticket's category, or the call fails and lists the actions that are. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| ticket_id integer required | integer | Ticket ID from search_tickets. |
| canned_action_id integer required | integer | Canned action ID from list_canned_actions. |
| mode enum | enum | reply or private_note. Default: reply. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "happyfox_write",
"arguments": {
"operation": "apply_canned_action",
"arguments": {
"ticket_id": 2090,
"canned_action_id": 31,
"mode": "reply"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"ticket_id": 2090,
"update_id": 88140,
"mode": "reply",
"canned_action": "Password reset steps",
"changed": {
"status": "Awaiting customer"
},
"created_at": "2026-10-20T09:03:00Z"
},
"isError": false
}