Create Deployment
create_deploymentDirect live Worker traffic to one version at 100% or split it across two versions for gradual rollouts; percentages must sum to 100.
Instructions
Point live traffic at Worker versions: a single version at 100%, or a gradual rollout splitting traffic across two versions (e.g. 90/10). Percentages must sum to 100.
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>",
"versions": "<versions>"
},
"name": "create_deployment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Deploy even if normally blocked (e.g. a secret changed since the target version) | |
| message | No | Deployment message (workers/message annotation) | |
| versions | Yes | One version at 100%, or two versions splitting traffic (e.g. 90/10 for a gradual rollout). Percentages must sum to 100. | |
| script_name | Yes | The name of the Worker script |