Redeploy Assets
redeploy_assetsCreate and deploy a new assets-only Worker version by reusing the live version's files and asset config, such as to update compatibility_date without re-uploading unchanged files.
Instructions
Create and deploy a new version of an assets-only Worker that reuses its live version's files and asset config, e.g. to bump compatibility_date. It cannot change html_handling/not_found_handling/base_path; use deploy_static_site for that (unchanged files dedupe, so nothing is re-uploaded). Refuses while a staged version or a gradual rollout is pending.
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>"
},
"name": "redeploy_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_name | Yes | The name of the Worker script | |
| compatibility_date | No | Worker compatibility date (YYYY-MM-DD); defaults to the Worker's current date |