get_cookie_banner_script
Generates the ready-to-paste HTML embed snippet or framework code (React, Next.js, WordPress) for the site's cookie consent banner with Google Consent Mode v2 auto-initialization.
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": {
"siteId": "<siteId>"
},
"name": "get_cookie_banner_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site UUID | |
| framework | No | html |