gitlab_deploy
Deploy GitLab refs to declared VPS targets with preview/apply plans and rollback to prior releases while restarting associated services.
Instructions
Deploy git code versions from GitLab to declared VPS targets with zero-downtime rollback.
Actions:
'targets': List declared deploy targets, active release version, and retention history.
'deploy': Deploy a git ref to a VPS target (confirm=false returns plan; confirm=true applies).
'rollback': Revert a target to its previous release and restart associated services.
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": {
"action": "<action>"
},
"name": "gitlab_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | e.g. 'v1.5', 'branch:main', or commit SHA | |
| action | Yes | ||
| target | No | Deploy target name from policy | |
| confirm | No | false = preview only; true = apply change | |
| plan_id | No | Plan ID from confirm=false preview | |
| release | No | Named historical release for rollback |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||