List templates
Reply templates from Settings, Smart Tools, Templates, with text and usage.
MCP tool edesk_read → list_templates
read
Lists the templates your account has, from Settings > Smart Tools > Templates. body is the template text with snippets left as written, for example #order_number# and #tracking_code#, so the agent fills them from get_order. Inactive templates are not returned. Templates are read only here: Cotlet does not create or change them.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Only templates whose name contains this text. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "edesk_read",
"arguments": {
"operation": "list_templates",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"templates": [
{
"template_id": 512,
"name": "Delivery update",
"subject": null,
"body": "Hi #consumer_firstname#, your order #order_number# was dispatched on #dispatched_on#. Tracking code: #tracking_code#.",
"type": "Consumer"
}
]
},
"isError": false
}