update_cut
Partially update one LightBurn cut entry or MillMage operation by its get_cuts flat index; only fields in changes are modified, and LightBurn validates the full body before applying.
Instructions
Requires capability "project_write". Partial update of one cut entry (LightBurn layer or MillMage operation) by its flat index from get_cuts. Only the fields in changes are modified; LightBurn validates the whole body first and changes nothing on error. Editable on LightBurn normal cuts: name, enabled, mode (cut|scan|offset), params (any LaserCutParams field such as speed, min_power, max_power, num_passes, frequency, interval, kerf, z_offset), params.galvo or params.gantry (must match the entry's profile), negative, pass_through, enable_cleanup, sort_within_layer, tabs, global_passes (galvo only), and existing sub_layers addressed by index. Image cuts: name, enabled, params.speed, params.max_power, params.dither_mode. MillMage: name, enabled, any settings key. Set params.override_frequency=true together with params.frequency, otherwise the frequency has no effect. Powers are 0-100. Values use the user's display units (see get_units). The change is one undo step in LightBurn; the operator must review before running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Flat index from get_cuts. | |
| changes | Yes | Partial cut entry, e.g. { params: { speed: 150, max_power: 65 } }. |