Start, Stop, or Restart Container
operate_containerExecute safe start, stop, or restart lifecycle operations on a Docker container on a selected 1Panel node.
Instructions
Execute a safe container lifecycle operation (start, stop, or restart) on a Docker container on the selected node.
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": {
"container": "<container>",
"operation": "<operation>"
},
"name": "operate_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Target node ID: "local" for the Main Node, or a numeric string ID (e.g. "3") from list_nodes. | local |
| container | Yes | Container name or container ID. | |
| operation | Yes | Lifecycle action: "start", "stop", or "restart". |