service_action
Start, stop, restart, enable, disable, or reload OpenWrt init.d services like network, firewall, or dnsmasq.
Instructions
Perform an action on an init.d service (start, stop, restart, enable, disable).
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": "service_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| service | Yes | Service name (e.g., 'network', 'firewall', 'dnsmasq') |