Upgrade SwOS Firmware
upgrade_swos_firmwareUpgrade SwOS switch firmware by resolving, downloading, and flashing the correct version, with dry-run and prerelease options.
Instructions
Upgrade a SwOS switch's firmware the way the web UI's Upgrade tab does. Resolves the latest stable version for the model from MikroTik's download server (or takes version), downloads swos--.bin over HTTPS into the server's SwOS folder (or uses file), checks it, then flashes it; the switch reboots. Refuses release candidates unless allowPrerelease is true. A switch still on its preinstalled backup firmware (a version ending in 'p', which cannot save configuration) counts as needing the upgrade. dryRun defaults to true.
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": "upgrade_swos_firmware"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Use this firmware file from the server's SwOS folder instead of downloading one (offline upgrade). | |
| board | No | Firmware board name, e.g. css318g. Derived from the model when omitted. | |
| force | No | Flash a `board` that differs from the one derived from the switch's model. | |
| dryRun | No | Resolve, download and check the firmware without flashing it. | |
| version | No | Target version. Defaults to the latest stable release for this model. | |
| routerId | No | Router ID; omit to use the default router. | |
| allowPrerelease | No | Allow a release candidate or beta version. | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |