Restart Docker Compose Service
compose_restart_serviceIdempotent
Restart a single Docker Compose service with a configurable graceful shutdown timeout, allowing AI coding agents to recover one service without shell execution.
Instructions
Restart a single Docker Compose service with a configurable graceful shutdown timeout.
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": {
"service": "<service>"
},
"name": "compose_restart_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory where the Docker Compose project lives. | |
| service | Yes | Name of the Docker Compose service to restart. | |
| composeFile | No | Optional path to a specific compose file (passed via -f). | |
| timeoutSeconds | No | Shutdown timeout in seconds before killing the container (1-120, default 10). |