opnsense_route_add
Add a static route to the OPNsense routing table by providing a destination network in CIDR and a gateway name. Activation requires running the apply tool.
Instructions
Add a static route. The gateway parameter must be a gateway name from opnsense_route_gateway_list. Run opnsense_route_apply afterwards to activate.
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": {
"network": "<network>",
"gateway": "<gateway>"
},
"name": "opnsense_route_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | Destination network in CIDR notation (e.g., 100.64.0.0/10) | |
| gateway | Yes | Gateway name or UUID (use opnsense_route_gateway_list to find available gateways) | |
| disabled | No | Whether the route is disabled (default: false) | |
| description | No | Optional description |