bricks_set_gsap_flag
Toggle the GSAP enqueue flag to load GSAP and ScrollTrigger via wp_enqueue_script for a page, ensuring proper dedup, browser caching, and no manual CDN tags.
Instructions
Toggle the GSAP enqueue flag for a page. When enabled, GSAP + ScrollTrigger are loaded via wp_enqueue_script (proper dedup, browser caching). No need to add CDN tags in per-page scripts.
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": {
"page_id": "<page_id>"
},
"name": "bricks_set_gsap_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | true to enable GSAP enqueue, false to disable | |
| page_id | Yes | WordPress page/post ID |