cloudflare_worker_deploy
Deploy or update a Cloudflare Workers script by providing source code, script name, and compatibility date.
Instructions
Deploy a Workers script. Creates or updates the named script with the provided source code.
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": {
"script_name": "<script_name>",
"script_content": "<script_content>",
"compatibility_date": "<compatibility_date>"
},
"name": "cloudflare_worker_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_name | Yes | Worker script name (lowercase alphanumeric and hyphens) | |
| content_type | No | Content type of the script (default: 'application/javascript+module') | |
| script_content | Yes | JavaScript or TypeScript source code for the Worker | |
| compatibility_date | Yes | Compatibility date (e.g., '2026-03-15') | |
| compatibility_flags | No | Optional compatibility flags (e.g., ['nodejs_compat']) |