create_page_rule
Create a Cloudflare page rule by specifying a URL pattern and actions. Requires confirm:true to apply; omit for a non-executing preview.
Instructions
Create a page rule (URL pattern + actions like cache_level, forwarding_url). Requires confirm:true (human-approval gate); without it returns a preview only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone_id | Yes | The Cloudflare zone ID (32-char hex). Get it from list_zones. | |
| url_pattern | Yes | URL match pattern, e.g. *example.com/images/*. | |
| actions | Yes | List of actions to apply when the pattern matches. | |
| status | No | Rule status. Default 'active'. | |
| priority | No | Rule priority (higher runs first). | |
| confirm | No | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve before this is set to true. |