Create Version (staged)
create_versionUpload a new Worker version without deploying it, keeping live traffic unchanged for staged rollouts; existing secrets carry over unless a binding with the same name is passed.
Instructions
Upload a new Worker version WITHOUT deploying it — live traffic is unchanged until the version is referenced by create_deployment. Use for staged rollouts. Existing secrets carry over unless you pass a binding with the same name.
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>",
"modules": "<modules>"
},
"name": "create_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Version tag (workers/tag annotation) | |
| message | No | Version message (workers/message annotation, shown in the dashboard) | |
| modules | Yes | Modules, each with inline content or a local file path; the first is the entry point unless main_module says otherwise | |
| bindings | No | Resource bindings for this version | |
| keep_assets | No | Retain the previous version's static assets | |
| main_module | No | Entry-point module name (default: first module) | |
| script_name | Yes | The name of the Worker script | |
| compatibility_date | No | YYYY-MM-DD; defaults to today | |
| compatibility_flags | No | Runtime compatibility flags. nodejs_compat is on by default for compatibility_date >= 2026-08-04, so it is not needed with the default (today) date |