Docker stack deploy
docker_stack_deployDeploy a Docker Swarm stack from a Compose file via docker stack deploy, enabling agents to launch multi-service workloads in a specified context.
Instructions
Deploy a stack via docker stack deploy (no SDK equivalent).
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_name": "<stack_name>",
"compose_file": "<compose_file>"
},
"name": "docker_stack_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| stack_name | Yes | ||
| compose_file | Yes |