control_service
Start, stop, restart, reload, enable, or disable a systemd unit. Returns the return code and new active state.
Instructions
[ACTION] start/stop/restart/reload/enable/disable a systemd unit.
Gated by SYSCONTROL_ALLOW_ACTIONS. System scope may prompt for auth (polkit). Returns rc + new ActiveState.
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": "<service>",
"action": "<action>"
},
"name": "control_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | ||
| action | Yes | ||
| scope | No | system |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||