gtm_get_variable
Retrieve specific variable configurations from Google Tag Manager using account, container, workspace, and variable IDs to inspect or export setup details.
Instructions
Gets a specific variable configuration from GTM
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": {
"accountId": "<accountId>",
"containerId": "<containerId>",
"workspaceId": "<workspaceId>",
"variableId": "<variableId>"
},
"name": "gtm_get_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | GTM Account ID | |
| variableId | Yes | GTM Variable ID | |
| containerId | Yes | GTM Container ID | |
| workspaceId | Yes | GTM Workspace ID |