cf_configure_routes
Set up Worker routes, bind custom domains, and configure path-based routing to direct traffic to your Cloudflare Worker.
Instructions
Configure Worker routes, custom domains, and path-based routing (Pro)
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": {
"worker_name": "<worker_name>",
"routes": "<routes>"
},
"name": "cf_configure_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routes | Yes | Route patterns (e.g. example.com/api/*) | |
| api_key | No | API key for authentication | |
| worker_name | Yes | Worker name | |
| custom_domain | No | Custom domain to bind |