Get the CookiePal banner install tag
get_install_snippetReturns the CookiePal banner script tag to paste into a site, for one domain in the connected account. It is byte-for-byte the tag the CookiePal dashboard copies for that domain, including defer for a Shopify store. Paste it as given: the URL it loads is specific to the domain, and a tag built by hand or copied from another site will not verify. Use verify_installation afterwards to confirm it is live.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_install_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domainId | No | Which domain’s tag to return, such as example.com. Omit it for the account’s default domain, the one the dashboard opens on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| defer | Yes | Whether the tag carries `defer`, which it does for a Shopify store. | |
| snippet | Yes | The exact tag to paste, identical to the one the dashboard copies. | |
| domainId | Yes | ||
| nextStep | Yes | ||
| placement | Yes | ||
| scriptUrl | Yes | The banner script this domain’s tag loads. | |
| isFromShopify | Yes |