Redeploy site
redeploy_siteUpdate an existing site, either with NEW code (source_type + repo_url/archive_url, public or private) or by redeploying an earlier version_id from its history. This REPLACES the live content, so confirm with the user first. The site's organization and hosting account do not change.
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": {
"site_name": "<site_name>"
},
"name": "redeploy_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| branch | No | main | |
| reason | No | Why (recorded with a version redeploy) | |
| ref_type | No | heads | |
| repo_url | No | ||
| framework | No | ||
| site_name | Yes | Name of the EXISTING site to update | |
| version_id | No | Instead of new code, redeploy this earlier version (see list_site_deployments) | |
| archive_url | No | ||
| import_type | No | build | |
| source_type | No | New code: 'git' or 'archive_url' (same meaning as deploy_site). Omit when using version_id. | |
| node_version | No | ||
| build_command | No | ||
| install_command | No | ||
| pat_secret_name | No | NAME of a stored Git token secret, for PRIVATE repos | |
| output_directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |