GTM: update variable (staged, never published)
gtm_update_variableUpdate a user-defined variable IN the managed AdCopilot workspace by variable id (staged, never published).
Only the fields passed change; the rest of the variable is kept, and a
variable edited by someone else in between is refused rather than
overwritten. Each `parameter` entry replaces the parameter with the same
key (the whole list when `type` changes too).
This overwrites the variable's current settings in the AdCopilot
workspace, including one that is live on the site today. The live site
changes only when a person publishes that workspace in Tag Manager, which
AdCopilot cannot do.Tools revision: d80f65c0.
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": {
"container": "<container>",
"variable_id": "<variable_id>"
},
"name": "gtm_update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| type | No | ||
| container | Yes | ||
| parameter | No | ||
| variable_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |