Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RESOLVE_HOSTNoConnect to a Resolve on another machine with network scripting enabled.
RESOLVE_SCRIPT_APINoResolve's Developer/Scripting folder (auto-detected on macOS, Windows and Linux).
RESOLVE_SCRIPT_LIBNoPath to fusionscript (auto-detected on macOS, Windows and Linux).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Controls a running DaVinci Resolve Studio (21.x) through its scripting API. Start with get_status.

Objects are addressed with reference strings, e.g. "timeline" (current), "timeline:<uid|name>", "item:" (timeline item), "clip:<uid|Master/Bin/name>" (media pool item), "folder:Master/Bin", "graph:item:", "color_group:", "album:still:1", "comp::1", "handle:". Every object a tool returns is described as {"$ref", "$type", "name"} and can be passed back as is. Frames are timeline frames; track indexes are 1-based like in Resolve. Resolve constants are passed by name (e.g. "EXPORT_EDL") or, inside call_api arguments, as {"$const": "EXPORT_EDL"}.

Coverage: dedicated tools exist for projects, media storage, media pool, clips, timelines, tracks, items, markers, color (nodes, LUTs, CDL, versions, groups, gallery), Fusion comps, Fairlight, AI features and rendering. For ANY other API method use call_api (or call_api_batch); list_api_methods, search_api, get_api_type and get_api_docs describe the full API. execute_python runs arbitrary Python as a last resort.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_node_graphA

Nodes of a node graph: index, label, LUT, cache mode and the tools used in each node. target: 'item:' (clip grade, optional layer), 'timeline' / 'timeline:' or 'group::pre' / 'group::post'.

set_nodeA

On one node (1-based) of a graph: set a LUT (absolute path or relative to the LUT folders; "" clears; run refresh_luts after adding LUT files), enable/disable it, or set its cache mode.

apply_gradeA

Apply a .drx grade file (grade_mode 0 = no keyframes, 1 = source timecode aligned, 2 = start frames aligned), apply the ARRI CDL+LUT from clip metadata, or reset all grades of a graph.

set_cdlB

Set an ASC CDL on a node of a timeline item's grade (slope / offset / power as [r, g, b]).

copy_gradeC

Copy the current grade of one timeline item onto other items.

export_lutC

Export a timeline item's grade as a LUT (.cube 17/33/65 points, or Panasonic VLUT).

refresh_lutsA

Rescan the LUT folders so newly added LUT files can be used.

reset_node_colorsC

Reset the node colors of a timeline item's graph.

grade_versionsC

Color grade versions of a timeline item: list (local and remote), add, load, rename, delete. remote=true works on remote versions.

list_color_groupsC

Color groups of the project, optionally with their clips on a timeline.

manage_color_groupB

Create / rename / delete a color group, assign timeline items to it, or remove items from their group.

item_aiA

AI tools on a timeline item: Magic Mask (track forward F / backward B / both BI), regenerate Magic Mask, Stabilize, Smart Reframe. Requires Resolve Studio.

list_galleryB

Still and PowerGrade albums (refs 'album:still:' / 'album:powergrade:'), the current album, and optionally each album's stills (index and label).

manage_albumC

Create a still or PowerGrade album, rename an album, or make it the current album.

manage_stillsB

Gallery stills: grab the current frame (or all clips: source 1 = first frame, 2 = middle frame) into the current album, list, import image files, export (with .drx grades) to a folder, delete, or set the label of stills selected by 1-based indices (default all).

fusion_compsB

Fusion compositions of a timeline item: list, add a new one, import a .comp, export one (by 1-based index) to a .comp, load (make active), rename or delete by name. The comp itself is reachable as 'comp::<index|name>' with call_api / execute_python (Fusion API).

get_fusion_compB

Tools of a Fusion composition (name, type, position in the flow, main inputs connected) and its render range. Edit it with execute_python via ctx.comp(':').

get_statusA

Resolve product/version, Studio flag, current page, database, project folder, open project, current timeline and playhead, keyframe mode and whether a render is running.

open_pageB

Switch Resolve to a page: media, cut, edit, fusion, color, fairlight or deliver.

list_presetsA

List presets of one kind: layout, render, burn_in, keyboard (with the current one), fairlight, user_preferences, project_settings or quick_export.

manage_presetA

Load / save (as new, from current state) / update / delete / import (from path) / export (to path) a preset. Not every kind supports every action (e.g. render presets cannot be 'loaded' here: use set_render_settings with preset=...).

set_keyframe_modeB

Set the Color page keyframe mode.

set_high_priorityB

Give Resolve high process priority (e.g. while rendering).

validate_dctlA

Compile-check DCTL source code. Returns null when valid, otherwise the error text.

encrypt_dctlC

Encrypt a .dctl file into a .dctle (optional output name, expiry date and output folder).

disable_background_tasksA

Disable Resolve background tasks (proxy, cache, analysis) for the rest of this Resolve session.

quit_resolveA

Quit DaVinci Resolve. Unsaved changes may be lost.

list_api_methodsA

Every method of an API class with signature and documentation (Resolve 21.1 stubs). Without class_name, lists the classes.

search_apiA

Search API methods, settings dictionaries and enum types by name or documentation text.

get_api_typeB

Full definition of an API type: a settings dict (e.g. RenderSettings, ProjectSettings, TimelineItemProperties, ClipProperties, TimelineSettings), an enum alias or a class.

get_api_docsB

Blackmagic's scripting README: 'TOC' for its headings, a heading name for one section (e.g. 'Audio Mapping', 'Looking up Project and Clip properties'), or '' for everything.

list_constantsA

Resolve constants (name -> live value), optionally filtered by prefix, e.g. EXPORT_, CACHE_, AUTO_CAPTION_, COMPOSITE_, RETIME_, SCALE_, MARKER_, CLOUD_.

call_apiA

Call ANY Resolve API method: target is a reference ("project", "media_pool", "timeline", "item:", "clip:", "graph:item:", "handle:", ...), method the API method name (see list_api_methods) and args its positional arguments as JSON. Inside args, objects are {"$ref": "..."} and constants {"$const": "NAME"}. Returned objects come back as references.

call_api_batchB

Run several API calls in order in one round trip. Each call is {"target", "method", "args"}. {"$result": i} (as target or anywhere in args) is the raw return value of call i (0-based), so calls can chain, e.g. target {"$result": 0} after a call that returned a timeline.

execute_pythonA

Run arbitrary Python against Resolve when no tool fits. Pre-defined names: resolve, project (may be None), media_pool, timeline (current, may be None), ctx (lookup helpers: ctx.item(uid), ctx.clip(ref), ctx.folder(path), ctx.timeline(ref), ctx.graph(target)...). Assign to result to return a value (Resolve objects come back as references); stdout and stderr are captured. Full OS access: use with care.

list_volumesC

Volumes mounted in Resolve's Media Storage.

browse_storageB

Sub-folders and media files of an absolute path as Media Storage sees it (image sequences are consolidated into single entries).

reveal_in_storageC

Show a file or folder in the Media page's storage browser.

import_mediaA

Import files or folders into the media pool (into bin, default the current bin). Each item is a path, or {"path", "start", "end"} to import a frame range of an image sequence. via_media_storage=true uses Media Storage's AddItemListToMediaPool (honours its sequence detection and start/end frames).

clone_mediaB

Clone tool (camera-card offload with verification). 'settings' sets preserve_folder_name and checksum (CLONE_CHECKSUM_TYPE_NONE/FILESIZE/CRC32/MD5/SHA256/SHA512/XXH_64); 'start' copies source_dir to target_dirs; 'status' reports progress; 'stop' cancels.

get_media_pool_treeB

Bin hierarchy of the media pool (from the root or bin), with clip counts and optionally the clips. Also returns the current bin.

create_binB

Create a bin (sub-folder) under parent (default: root). Use "A/B/C" in name to create nested bins.

set_current_binB

Make a bin the current media pool folder (where imports and new timelines land).

delete_binsB

Delete bins and everything they contain.

move_binsC

Move bins into another bin.

refresh_binsA

Refresh the media pool folders (picks up changes from collaborators) and report stale bins.

import_binA

Import a .drb bin file into the current bin (optionally relinking to source_clips_path).

export_binC

Export a bin to a .drb file.

list_clipsB

Clips in the media pool (or in bin), with their bin path and a few properties (default: Type, File Path, Duration, FPS, Resolution, Start/End TC, Clip Color, codec, audio channels). Pass properties for others (see get_api_type('ClipProperties')), [] for none.

get_clipB

Everything about a media pool clip. sections (default all): properties, metadata, third_party_metadata, markers, flags, mark_in_out, audio_mapping, media_id, mattes, timeline.

update_clipB

Change a media pool clip: rename, clip color ("" clears), clip properties (e.g. "Clip Name", "Input Color Space", "Data Level", "Reel Name"...), metadata (e.g. Scene, Take, Comments), third-party metadata, flags and audio mapping (JSON string, see get_api_docs('Audio Mapping')).

set_clip_mark_in_outB

Set (or clear) a media pool clip's mark in/out, in source frames.

get_selected_clipsC

Clips selected in the media pool.

select_clipC

Select a clip in the media pool.

delete_clipsB

Delete clips from the media pool (media on disk is untouched).

move_clipsC

Move clips to another bin.

relink_clipsA

Relink clips to media found under folder_path, or unlink them (unlink=true).

link_clip_mediaB

Proxy and source media management for a clip: link/unlink a proxy file, link full-resolution media, replace the clip's media (optionally preserving sub-clip extents) or monitor a growing file.

create_multicam_clipB

Create multicam clip(s). options (see get_api_type('MulticamOptions')): name, startTimecode, frameRate, angleSyncMode (MULTICAM_ANGLE_SYNC_*), angleNameMode (MULTICAM_ANGLE_NAME_*), multicamAudioMode (MULTICAM_AUDIO_*), detectSameCameraClipsMode (MULTICAM_DETECT_*), splitAtGaps, useFullClipExtents, createBinForSourceClips. Constant names are converted automatically.

create_stereo_clipB

Create a stereo 3D clip from a left-eye and a right-eye clip.

auto_sync_audioC

Sync video and audio clips (dual-system sound) by waveform, timecode, in/out points or markers.

export_clip_metadataB

Export clip metadata to a CSV file (all clips, or only clips).

manage_mattesC

Clip mattes (attached to a clip) and timeline mattes (stand-alone, in a bin).

analyze_mediaA

AI analysis on a clip ("clip:...") or a whole bin ("folder:..."): transcription (with speaker detection, optionally of nested clips), audio classification, IntelliSearch indexing (faces), slate detection (marks with a MARKER_* color) or motion-blur removal (see get_api_type('DeblurOptions')). Some need Resolve Studio and downloaded AI extras.

get_transcriptionA

Transcription of a clip (language, segments with speaker, timing and words). Run analyze_media(action='transcribe') first.

list_projectsA

Projects and sub-folders in the current project-manager folder, or in folder (a path from the root, "/" = root; navigating changes the current folder). Optionally with attributes (created / modified dates, notes, collaboration mode).

open_projectA

Open (load) a project by name, optionally from a project-manager folder path.

create_projectB

Create and open a new project (optionally with a media location path, inside a folder).

save_projectB

Save the current project.

close_projectA

Close the current project (saving it first by default).

rename_projectC

Rename the current project.

delete_projectA

Delete a project from the database (it must not be open). Irreversible.

import_projectA

Import a .drp project file (or restore a .dra archive with restore_archive=true) into the current project-manager folder.

export_projectC

Export a project of the current folder to a .drp file.

archive_projectC

Archive a project to a .dra folder, optionally with source media, render cache and proxies.

create_project_folderB

Create a project-manager folder in the current folder (or in parent).

delete_project_folderA

Delete a project-manager folder (and its projects) from the current folder or parent.

list_databasesB

Available project databases and the current one.

set_databaseB

Switch the project database (closes the open project). db_type is 'Disk' or 'PostgreSQL'.

get_project_settingsB

Project settings (all of them, or only keys, e.g. timelineFrameRate, timelineResolutionWidth, colorScienceMode...). See get_api_type('ProjectSettings') for every key and value.

set_project_settingsA

Set project settings from a {key: value} dict (see get_api_type('ProjectSettings')). If Resolve rejects the whole dict, keys are retried one by one and the failing ones reported. The 'superScale' 2x Enhanced mode needs execute_python: project.SetSetting('superScale', 2, sharpness, nr).

cloud_projectC

Blackmagic Cloud projects. action: 'load', 'create', 'import' (from file path) or 'restore' (from folder path). sync_mode: CLOUD_SYNC_NONE, CLOUD_SYNC_PROXY_ONLY or CLOUD_SYNC_PROXY_AND_ORIG.

get_render_optionsB

Render formats (name -> extension), the codecs of format (an extension like 'mov'), the resolutions available for a format/codec, the current format/codec and render mode (0 = individual clips, 1 = single clip) and render presets. audio=true lists audio-only formats/codecs.

set_render_settingsA

Prepare the Deliver page: load a render preset, set format + codec (e.g. 'mov' + 'ProRes422HQ'), render mode, and render settings such as TargetDir, CustomName, SelectAllFrames, MarkIn, MarkOut, FormatWidth, FormatHeight, FrameRate, VideoQuality, ExportAudio, ColorSpaceTag... (see get_api_type('RenderSettings')). Applied in that order.

add_render_jobB

Add a render job for a timeline (current by default) with the current Deliver settings. Returns its job id.

list_render_jobsB

Render queue: every job with its settings and status.

delete_render_jobsB

Delete render jobs by id, or all of them.

start_renderA

Start rendering the given jobs (all queued jobs when omitted). interactive=true shows error dialogs in Resolve. Poll with render_status.

stop_renderB

Stop the render in progress.

render_statusB

Progress of one job, or of every job, plus whether a render is in progress.

quick_exportC

Render the current timeline with a Quick Export preset (e.g. 'H.264', 'ProRes', 'YouTube'). enable_preset toggles whether a render preset appears in Quick Export instead.

insert_audio_at_playheadA

Insert an audio file on the current audio track at the playhead (Fairlight page), optionally a sub-range in samples (duration 0 = whole file).

apply_fairlight_presetA

Apply a Fairlight preset (see list_presets('fairlight')) to the current timeline.

generate_speechC

AI text-to-speech (Resolve Studio): creates a media pool clip, optionally placed on the timeline.

reset_intellisearchC

Reset the project's IntelliSearch analysis.

list_timelinesB

Timelines of the current project (index, ref, name, frame range, start timecode) and the current one.

get_timelineB

A timeline's frame range, timecodes, playhead, tracks (name, subtype, enabled, locked, item count), marks, markers, output blanking and optionally its settings.

set_current_timelineC

Make a timeline the current (open) one.

create_timelineA

Create a timeline (empty, or from clips) in bin (default current bin). Each clip is a clip reference or {"clip", "start", "end", "record_frame"} with source frames for a sub-range.

import_timelineC

Import a timeline from AAF / EDL / XML / FCPXML / DRT / ADL / OTIO into the current project.

import_into_timelineB

Import an AAF into an existing timeline (see get_api_type('AAFImportOptions'); sourceClipsFolders may be bin paths).

export_timelineC

Export a timeline: AAF (subtype aaf_new / aaf_existing), EDL (subtype none / cdl / sdl / missing_clips), FCP 7 XML, FCPXML 1.8-1.10, DRT, OTIO, ALE, CSV / tab text, HDR10 or Dolby Vision metadata.

duplicate_timelineC

Duplicate a timeline (optionally naming the copy).

rename_timelineC

Rename a timeline.

delete_timelinesC

Delete timelines from the project.

get_timeline_settingsC

Timeline settings (all or keys); see get_api_type('TimelineSettings').

set_timeline_settingsB

Set timeline settings (e.g. useCustomSettings, timelineResolutionWidth, timelineFrameRate...). Keys failing as a group are retried one by one and reported.

set_timeline_start_timecodeB

Set a timeline's start timecode, e.g. '01:00:00:00'.

playheadA

Get the playhead timecode of the current timeline, or move it to timecode. Also returns the video item under the playhead.

set_timeline_mark_in_outC

Set or clear a timeline's mark in/out (timeline frames).

get_current_frame_thumbnailA

Image (PNG) of the current frame so the agent can see it: the Color page thumbnail when available, otherwise the frame exported as a still.

export_current_frameA

Export the current frame (full resolution) as a still image file (.dpx, .tif, .png, .jpg, .exr...).

add_trackA

Add a video, audio (with channel format) or subtitle track at the top, optionally naming it.

delete_trackC

Delete a track and everything on it.

update_trackA

Rename, enable/disable, lock/unlock a track; for audio tracks also set Voice Isolation.

list_track_itemsB

Items on a timeline (all tracks, one track type, or one track) with ref, name, record range, track, enabled, source clip. detail=true adds type, source range, offsets, color and flags.

get_selected_itemsC

Timeline items currently selected in the UI.

get_itemB

Everything about a timeline item. sections (default all): basics, properties (transform, crop, composite, retime, stabilization...), speed, fades, markers, takes, versions, fusion, color, linked, audio, cache, output_blanking, stereo.

update_itemB

Change a timeline item. properties: Inspector values validated all-or-nothing (Pan, Tilt, ZoomX/Y, RotationAngle, Crop*, Opacity, CompositeMode, RetimeProcess, Scaling...; constants by name e.g. "COMPOSITE_SCREEN"; see get_api_type('TimelineItemProperties')). speed: {Percentage, PitchCorrection, StretchKeyframesToFit, RippleTimeline}. voice_isolation: {isEnabled, amount}. output_blanking: {Top, Bottom, Left, Right}.

append_to_timelineA

Append clips to a timeline (current by default). Each entry is a clip reference or {"clip", "start", "end" (source frames), "track" (1-based), "record_frame" (timeline frame), "media": "video"|"audio"} to place sub-ranges precisely.

delete_itemsB

Delete timeline items (optionally ripple delete).

link_itemsC

Link or unlink timeline items (e.g. a video clip and its audio).

create_compound_clipB

Turn items of the current timeline into a compound clip (or into a Fusion clip with fusion_clip=true).

insert_effect_clipB

Insert a generator, Fusion generator, OFX generator, title, Fusion title or an empty Fusion composition into the current timeline at the playhead (e.g. kind='title' name='Text' or 'Scroll'; kind='fusion_title' name='Text+').

add_transitionA

Add a transition at the start or end edge of a timeline item (e.g. type 'Cross Dissolve', 'Dip To Color Dissolve', 'Smooth Cut'; category simple / fusion / ofx / audio). The item needs media handles on that edge. Returns the transition item.

manage_takesB

Take selector on a timeline item: list takes, add a clip as a take (optional source range), select / delete a take by 1-based index, or finalize the selected take.

timeline_aiA

Timeline-level tools. detect_scene_cuts; create_subtitles (options: language AUTO_CAPTION_*, captionPreset, charsPerLine, lineBreak, gap); normalize_audio (items; options: normalizationMode, targetLevel, targetLoudness, setLevelMode — see list_api_methods('Timeline') for modes); auto_align (items; options SyncUsing, UseTrack); convert_to_stereo; dolby_vision_analysis (items); smart_switch (one multicam item; SmartSwitchSettings); flatten_multicam (one item; options {grade: FLATTEN_MULTICAM_*}). Constant names in options are converted.

set_output_blankingC

Timeline output blanking in pixels (letterbox / pillarbox).

get_markersB

Markers of a timeline, timeline item or media pool clip, keyed by frame (or the one marker with custom_data). Timeline markers are relative to the timeline start.

add_markersB

Add markers to a timeline, item or clip. Each marker: {"frame", "color" (Blue, Cyan, Green, Yellow, Red, Pink, Purple, Fuchsia, Rose, Lavender, Sky, Mint, Lemon, Sand, Cocoa, Cream), "name", "note", "duration" (default 1), "custom_data"}.

delete_markersB

Delete markers at a frame, by color ('All' deletes every marker) or by custom data.

set_marker_custom_dataC

Set the custom data string of the marker at frame.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.9/5.0

Scored across 132 tools

Disambiguation3/5

Most tools target a genuinely distinct resource+action (bins, clips, timelines, render jobs, markers), but there are real overlaps: four escape hatches (call_api, call_api_batch, execute_python, plus the api-doc/introspection tools) all let you do 'anything', and preset handling is split across list_presets/manage_preset/get_render_options/set_render_settings. Editing tools like update_item vs update_clip vs update_track vs set_timeline_settings require careful reading of descriptions to distinguish. Descriptions are excellent, so an attentive agent can disambiguate, but boundaries are not self-evident.

Naming Consistency3/5

The dominant convention is snake_case verb_noun (list_clips, get_clip, create_bin, delete_markers), which is good. However, a sizable minority are resource- or domain-named rather than verb-named (item_ai, timeline_ai, playhead, grade_versions, quick_export, cloud_project, fusion_comps, call_api), and a few blend multiple actions under one name (manage_stills, manage_mattes, manage_takes, playhead). Readable but not a clean uniform pattern.

Tool Count2/5

132 tools is far beyond navigable size for an agent and the server already ships generic escape hatches (call_api, call_api_batch, execute_python) that could absorb many of the narrow wrappers. The breadth is partly justified by Resolve's enormous surface (media pool, timelines, color, fusion, fairlight, deliver), but the count is still excessive and redundant at the margins.

Completeness5/5

Coverage is exceptional: projects/databases, media pool and bins, import/export/relink, clip metadata and mattes, timelines and tracks, items and takes, markers, gallery/stills, Fusion comps, color grading and CDLs, render queue, Fairlight, AI actions, plus introspection and arbitrary-API escape hatches. Almost no lifecycle gap remains, and dead ends are covered by call_api/execute_python.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues