macro_import
Import macros from a specified file into the OPNSense MCP Server, enabling streamlined firewall rule and network management with optional overwrite capability.
Instructions
Import macros from a file
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": {
"path": "<path>"
},
"name": "macro_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | Overwrite existing macros | |
| path | Yes | Import file path |