Open a project
layz_list_projects, layz_create_project, layz_open_editor_project, layz_duplicate_project.
Save browser work first. If hasUnsavedChanges is true on open, resolve the conflict in the UI.
Read then write
layz_get_editor_context(andlayz_get_capabilitieswhen needed)- Mutate with
layz_editor_*tools or a batchlayz_apply_editor_commands - Re-read context if the revision changed
layz_export_videowhen approved
Edit sessions
For risky batches:layz_begin_edit_session- Apply draft commands
layz_review_edit_session(manual review in web, or auto apply)- Or
layz_discard_edit_session
Capability areas
Timeline, audio, captions, effects, motion graphics, keyframes, masks, multicam, markers, sequences, themes, watermarks, undo/redo, and more. Naming pattern:ADD_MEDIA_TO_TIMELINE → layz_editor_add_media_to_timeline.
Preview-only tools (play, pause, seek, …) do not change the render.
Export
Same as Export a video:layz_export_video → wait → QA frames → share links.
