docker_stack_action
Run Docker Compose actions such as up, pull, build, restart, or down on a specific stack, with confirmation required for destructive operations.
Instructions
Run a Compose action on one stack.
action: up (create/start, same as docker compose up -d), pull (get new images), update (pull then up), start, stop, restart, build (build the images the compose file builds itself), build_no_cache, up_build (build then up), recreate (up with --force-recreate). These need confirm=true. down (removes the containers and network, keeps volumes) and down_volumes (also removes the stack's volumes) are destructive and also
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": {
"stack": "<stack>",
"action": "<action>"
},
"name": "docker_stack_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| stack | Yes | ||
| action | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |