service_control
Control systemd services on remote servers by starting, stopping, restarting, reloading, enabling, or disabling units via SSH.
Instructions
Start, stop, restart, reload, enable or disable a systemd unit.
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": {
"host": "<host>",
"unit": "<unit>",
"action": "<action>"
},
"name": "service_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Configured host name | |
| unit | Yes | systemd unit name | |
| action | Yes | One of: start, stop, restart, reload, enable, disable |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |