Export a template as a shareable code
export_templateTurn a template into a shareable code (base64 of a JSON document) that import_template, or the app's Import, turns back into a template in any organization. Account-bound options (Pinterest board, Discord channel, …) are left out. The media travels as references to this organization's library, so it only means something when imported back into the same organization. Returns { code, json }.
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": {
"templateId": "<templateId>"
},
"name": "export_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | The template ID (from list_templates) | |
| organizationId | No | Organization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Base64 of the JSON document; pass it to import_template | |
| json | No | The same document, readable |