container_restart
Restart a WSL container by stopping and starting it, since wslc has no native restart command.
Instructions
Restart a WSL container. Since wslc has no native restart command, this stops then starts the 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": {
"containerId": "<containerId>"
},
"name": "container_restart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Seconds to wait before killing on stop (default: 5) | |
| signal | No | Signal to send on stop (e.g. SIGTERM) | |
| containerId | Yes | Container ID or name |