stop_container
Stop a running Docker container by specifying the Portainer environment ID and container ID. Halts container operations immediately.
Instructions
Stop a running container
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": {
"environmentId": "<environmentId>",
"containerId": "<containerId>"
},
"name": "stop_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| containerId | Yes | Container ID or name | |
| environmentId | Yes | Portainer environment ID |