控制 systemd 服务
ssh_service_controlStart, stop, restart, or reload systemd services on a remote host via SSH. This tool manages service states without requiring a direct shell login.
Instructions
启动、停止、重启或重载 systemd 服务。
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": {
"alias": "<alias>",
"service": "<service>",
"action": "<action>"
},
"name": "ssh_service_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | ||
| action | Yes | ||
| service | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||