Get tag
gtm_get_tagRetrieve full Google Tag Manager tag details, including parameters, triggers, consent settings, notes, fingerprint, and referenced variables for auditing or editing.
Instructions
Full tag: flattened parameters, triggers, consent, notes, fingerprint and the variables it references. Container as public id (GTM-XXXXXXX, or a linked G-/AW- destination id) or API path accounts//containers/. Workspace id (numeric). Omit to use the 'Default Workspace' (looked up once and cached).
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>",
"tag_id": "<tag_id>"
},
"name": "gtm_get_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag_id | Yes | ||
| container | Yes | ||
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||