Backup settings
backup_settingsSave a controller's complete configuration, including port modes, automation rules, and alarms, to a local JSON file before making changes. Restore this backup later to undo any modifications.
Instructions
Save the complete configuration of a controller (every port's mode settings, the controller record, all Advance Automation rules and alarms) to a local JSON file. Nothing on the device changes. Do this before any set_* call; restore_settings undoes changes.
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": {
"controller_id": "<controller_id>"
},
"name": "backup_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional tag for the file name. | |
| controller_id | Yes | Controller id (`id` from list_controllers). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| label | No | ||
| ports | Yes | ||
| backup_id | Yes | Use this id with restore_settings / compare_backup. | |
| created_at | Yes | ||
| controller_id | Yes | ||
| controller_name | Yes | ||
| automation_rules | Yes |