Export Config
export_configExport a MikroTik RouterOS configuration as a RouterOS script, returning it inline or saving it as an .rsc file on the router; use compact mode for non-default values.
Instructions
Export the router configuration as a RouterOS script. When no file is specified, returns the script text inline. When a file is specified, saves it as .rsc on the router's filesystem. Supports compact mode to show only non-default values.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Save the export to a file on the router (without extension); omit to return inline | |
| compact | No | Export only non-default settings (compact format) | |
| routerId | No | Router ID; omit to use the default router. | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |