winops_svc_restart
Restart a Windows service and wait for it to reach the running state. Set an optional timeout (5-120 seconds) to control how long to wait before returning the status.
Instructions
Restart a Windows service and wait for running state.
Return Format
{"success": bool, "name": str, "status": str}Examples
restart(service_name="spooler")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_name": "<service_name>"
},
"name": "winops_svc_restart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | Windows service name to restart. | |
| wait_timeout | No | Seconds to wait for running state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||