uci_add
Add an anonymous UCI section of a given type to a specified config, enabling new entries such as firewall rules on OpenWrt.
Instructions
Add an anonymous UCI section of a given type to a config.
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": {
"config": "<config>",
"type": "<type>"
},
"name": "uci_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Section type (e.g., 'rule') | |
| config | Yes | Config name (e.g., 'firewall') |