redeploy
Rebuild a project from its branch or roll back to a previous deployment, replacing what is live. The first call returns a preview; call again with confirm=true to apply.
Instructions
Redeploy a project. rebuild_from_branch=true (default) rebuilds from the latest commit of its branch; false re-deploys the given deployment as it was (rollback). Without deployment_id, the latest deployment is used. It replaces what is live: the first call only returns a preview; call again with confirm=true once the user agrees.
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": {
"project_id": "<project_id>"
},
"name": "redeploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| project_id | Yes | ||
| deployment_id | No | ||
| rebuild_from_branch | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |