Import a Template Gallery template into the Caybl workspace
gtm_import_templateImport a template found with gtm_template_lookup into the container's Caybl workspace (a draft, never live). Only templates that appear in the live gallery can be imported. Dry run by default. After applying, the result lists the template's settings and the sandbox permissions it asks for; show those to the user. Then create a tag with gtm_upsert_tag kind=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": {
"template": "<template>"
},
"name": "gtm_import_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | The template `id` from gtm_template_lookup (or owner/repository as shown there). | |
| container | No | Container public id like 'GTM-ABC123', from gtm_list_containers. | |
| workspace | No | Name of an existing workspace to draft into instead of "Caybl changes" (created automatically). | |
| validateOnly | No | Default TRUE: a dry run that shows exactly what would change and changes nothing. Show the user the result, and only call again with validateOnly=false once they've agreed. |