service_restart
Restarts a specified router service via SSH with user confirmation to avoid unintended downtime.
Instructions
重启指定服务(写入操作,需二次确认)。
参数与返回结构同 service_start。restart 非幂等,重复调用会重复中断服务。
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": {
"name": "<name>"
},
"name": "service_restart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |