gtm_update_variable
Update an existing Google Tag Manager variable by its ID, applying new configuration settings to the specified container workspace.
Instructions
Update an existing GTM variable by id.
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": {
"account_id": "<account_id>",
"container_id": "<container_id>",
"workspace_id": "<workspace_id>",
"variable_id": "<variable_id>",
"variable": "<variable>"
},
"name": "gtm_update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable | Yes | ||
| account_id | Yes | ||
| variable_id | Yes | ||
| container_id | Yes | ||
| workspace_id | Yes | ||
| connection_id | No | ||
| session_token | No |