Media (write)
media_writeChange media state in DaVinci Resolve's Media Pool—import, organize, relink, mark, rename, flag, and set clip metadata—then read back each change to verify it took effect.
Instructions
Change media state; may overwrite current values. Every change is read back from Resolve (receipt.verified=false means it did not take). op.action (params; * = required):
add_clip_marker(clip*, frame*, color, name, note, duration, custom_data): Add a marker to a Media Pool clip at a frame offset.
add_clip_mattes(clip*, paths*, stereo_eye): Add matte files to a clip.
add_flag(clip*, color*): Add a flag of the given color to a clip.
add_timeline_mattes(paths*): Add matte files as timeline mattes in the current folder.
auto_sync_audio(clips*, settings): Auto-sync audio of clips (needs at least one video and one audio clip).
clear_flags(clip*, color): Clear one flag color, or all flags, of a clip.
clear_mark_in_out(clip*, mark_type): Clear the mark in/out of a clip.
clone_media(source_dir*, target_dirs*, preserve_folder_name, checksum_type): Clone media with checksum verification (21.1+, long-running job). [job]
create_folder(name*, parent, set_current): Create a subfolder in the Media Pool.
create_multicam_clip(clips*, options): Create multicam clip(s) from clips (21.1+); options use live constants.
create_stereo_clip(left*, right*): Create a stereoscopic 3D clip from a left and a right clip.
export_folder_drb(folder*, path*): Export a Media Pool folder as a DRB file.
export_metadata(path*, clips): Export clip metadata to a CSV file.
import_folder_drb(path*, source_clips_path): Import a DRB folder export into the Media Pool.
import_media(items*, folder, via_media_storage): Import files/folders/sequences into the current or a chosen Media Pool folder.
link_full_resolution_media(clip*, path*): Link full-resolution media to a proxy-only clip.
link_proxy_media(clip*, path*): Link a proxy media file to a clip.
monitor_growing_file(clip*): Monitor a clip's file while it keeps growing.
move_clips(clips*, target*): Move clips to another Media Pool folder.
move_folders(folders*, target*): Move folders into another Media Pool folder.
refresh_folders(): Refresh Media Pool folders (collaboration mode).
relink_clips(clips*, folder_path*): Relink clips to media found in a folder.
replace_clip(clip*, path*, preserve_sub_clip): Replace the underlying media of a clip with another file.
reveal_in_storage(path*): Reveal a path in Resolve's Media Storage panel.
select_clip(clip*): Select a clip in the Media Pool.
set_clip_color(clip*, color): Set a clip color (16 clip colors) or clear it when color is null.
set_clip_metadata(clip*, metadata*, third_party): Set clip metadata (or third-party metadata) key/value pairs.
set_clip_name(clip*, name*): Rename a clip (MediaPoolItem.SetName).
set_clip_properties(clip*, properties*): Set clip properties (key -> value), reading each one back.
set_current_folder(folder*): Make a folder the current Media Pool folder.
set_mark_in_out(clip*, mark_in*, mark_out*, mark_type): Set the mark in/out of a clip.
update_marker_custom_data(clip*, frame*, custom_data*): Update the custom data of a clip marker. Shortcuts (prefer them for whole tasks):
workflow_write.conform_from_edl: Import media + EDL as a timeline, fix offline events via Start TC, report linkage. One call instead of import_media, relink_clips. Calls known in advance (a sequence, the same change on several items): ONE batch_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | {action, ...params}. Parameters per action: see the description or this server's describe_action tool. | |
| dry_run | No | true: return the planned effect, change nothing. | |
| snapshot | No | true: back up the timeline/project first; omitted: server policy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | ||
| plan | No | ||
| status | Yes | ||
| receipt | No |