device_put_file
Replace or add an embedded file in a frozen Max for Live device using a disk source or literal text; changes stay in memory until the device is saved.
Instructions
Replace or add an embedded file in a frozen device, from a file on disk (source) or literal text.
New files get a directory record modelled on Max's own and (for frozen devices) a dependency_cache entry.
type_code is the 4-char collective type (default from extension: JSON, TEXT, PNG , svg , JPEG ...).
In memory until device_save.
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": "<name>"
},
"name": "device_put_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| text | No | ||
| source | No | ||
| type_code | No | ||
| add_dependency | No |