device_save
Writes in-memory Max device state to disk with backups and verification, atomically replacing files and blocking risky saves when an editor is open or the file changed unless forced.
Instructions
Write the in-memory state. Refuses while a Max editor window for the target device is open (writing then
has crashed Live: ask the user to close that window WITHOUT saving, then retry). Refuses if the file changed on
disk since it was read (force=true overrides; the on-disk version is backed up first). Always backs up the file
being replaced, re-parses and verifies the bytes, then writes a temp file and atomically replaces. dest saves
elsewhere (overwrite=true to replace an existing file). ignore_open_editor only for a known false match.
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": "device_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | No | ||
| path | Yes | ||
| force | No | ||
| overwrite | No | ||
| ignore_open_editor | No |