GTM: Validate workspace
gtm_validate_workspaceChecks every tag, trigger, and variable in a GTM workspace, verifying Custom HTML/JS follows ES5 strict rules and all {{Variables}} exist. Reports each problem with name, ID, line, and column.
Instructions
Checks all tags, triggers and variables in the workspace: JavaScript in Custom HTML/Custom JS (ES5 strict, incl. functions in blocks) and whether every {{Variable}} exists. Returns name, ID, line and column per problem.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | GTM accountId (from gtm_list_accounts) | |
| containerId | Yes | GTM containerId, numeric | |
| workspaceId | Yes | Workspace ID (from gtm_list_workspaces / gtm_create_workspace) |