Import a template from a shareable code
import_templateCreate a template from a code made by export_template (or the app). Always creates a new template; an invalid or unsupported code is refused with the reason. Media from another organization is dropped (only files this organization owns are kept). Returns the new template.
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": {
"code": "<code>"
},
"name": "import_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code export_template returned: base64, or the JSON document itself (max 50,000 characters) | |
| 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 |
|---|---|---|---|
| template | No |