macro_play
Execute a saved macro on the OPNSense MCP Server to automate network tasks, configure firewall rules, or manage VLANs. Supports parameter substitution and dry-run mode for testing.
Instructions
Play a saved macro
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": {
"id": "<id>"
},
"name": "macro_play"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Execute in dry-run mode without making actual API calls | |
| id | Yes | Macro ID | |
| parameters | No | Parameters to substitute in the macro |