create_worker_route
Map a URL pattern to a Worker script in your Cloudflare zone. Preview without approval; execute only with human confirmation.
Instructions
Create a Worker route mapping a URL pattern to a Worker script. 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. | |
| pattern | Yes | Route pattern, e.g. example.com/api/*. | |
| script | No | Worker script name to run on this route. Omit to disable on the pattern. | |
| 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. |