Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PMCP_FFMPEGNoFull path to ffmpeg when it is not on PATH.
PMCP_FFPROBENoFull path to ffprobe when it is not on PATH.
PMCP_TOOLSETSNoComma-separated toolsets to expose, for example app,project,sequences,timeline. Default: all. Use this with clients that load every tool description up front.all
PMCP_READ_ONLYNoSet to 1 to expose only tools that read state.
PMCP_NO_SCRIPTSNoSet to 1 to hide execute_extendscript (arbitrary code inside Premiere).
PMCP_DISABLE_TOOLSNoComma-separated tool names to hide.
PMCP_NO_DESTRUCTIVENoSet to 1 to hide tools that delete or discard work. Under PMCP_NO_DESTRUCTIVE=1, calls that pass overwrite: true are also refused.

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 Adobe Premiere Pro through a bridge panel. Start with get_project_overview (or ping if a call fails) to see what is open. All times are seconds (floats) unless a parameter says frames, ticks or timecode. Sequences are addressed by sequence_id (stable) or sequence_name; omit both for the active sequence. Clips are addressed by clip_id (stable) or by track_type + track_index + clip_index (all 0-based; indices shift after edits, so re-read after structural changes). Project items are addressed by item_id (stable), item_path ("Bin/Sub/Name") or item_name. Use capture_frame to look at the result of visual changes. Use find_tools to search the tool catalogue by keyword.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_ffmpegA

Report whether ffmpeg and ffprobe can be run by this server, with their versions and locations. Every analysis tool that decodes, probes or writes media needs both (the checksum and folder tools do not). Premiere Pro is not needed. Never fails: when a program is missing it returns available=false and a hint that says how to install it. The programs are taken from the environment variables PMCP_FFMPEG / PMCP_FFPROBE when set, otherwise from PATH.

probe_media_fileA

Read the technical properties of a video, audio or image file with ffprobe, without importing it. Returns the container, duration in seconds, size in bytes, overall bit rate, start timecode, and for every stream: type, codec, width/height, fps, pixel format, bit depth, rotation (clockwise degrees), field order, colour space, sample rate, channels, channel layout, duration and timecode. Use it to choose sequence settings or to check a file before importing. For an item already in the project, get_item_media_info reports what Premiere sees. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

detect_silence_in_fileA

Find the silent parts of a media file's audio (ffmpeg silencedetect). Returns silent ranges and the complementary non_silent ranges, each as {start, end, duration} in file time (seconds from the start of the file), plus counts and total seconds. Typical use: analyse the source file of a clip, then cut the silent ranges out of the timeline with extract_range or razor_at_times (for a clip at 100 % speed: sequence time = clip start + file time - clip in point). A part counts as silent when every channel stays below noise_db for at least min_duration. Use padding to keep a little room around speech. Fails with NO_AUDIO for a file without sound. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

detect_scene_changes_in_fileA

Find the cuts in a video file: the times where the picture changes abruptly (ffmpeg scene score). Returns cuts as {time, score}: time in file time (seconds from the start of the file) of the first frame of the new shot, score 0-1. Use it to split a flattened export back into shots (razor_at_times (for a clip at 100 % speed: sequence time = clip start + file time - clip in point)) or to place markers at every cut (add_markers). Dissolves and fades are usually not detected. detect_scene_edits does the same inside Premiere on timeline clips. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

detect_black_frames_in_fileA

Find the parts of a video file where the picture is black (ffmpeg blackdetect): fades to black, slugs, missing media in an export. Returns black ranges as {start, end, duration} in file time (seconds from the start of the file), black_count and black_seconds. Use it for quality control of an export or to find act breaks. detect_letterbox_in_file finds black bars instead. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

detect_freeze_frames_in_fileA

Find the parts of a video file where the picture does not change (ffmpeg freezedetect): frozen frames, held stills, stuck encoders. Returns frozen ranges as {start, end, duration} in file time (seconds from the start of the file), frozen_count and frozen_seconds. A black or otherwise static stretch also counts as frozen; use detect_black_frames_in_file to tell them apart. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

detect_letterbox_in_fileA

Find black bars (letterbox or pillarbox) baked into a video file by sampling frames spread over the whole file (ffmpeg cropdetect). Returns source size, picture (the area without bars {width, height, x, y} in pixels), bars (bar size in pixels on each side), has_bars, picture_aspect_ratio and scale_percent_to_fill: the clip scale that makes the picture fill the frame. Use it to decide the scale (set_clip_scale) or crop (crop_clip) needed to remove the bars. Fails with FFMPEG_FAILED when every sampled frame is completely black. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

measure_loudness_of_fileA

Measure the programme loudness of a file's audio the EBU R128 / ITU-R BS.1770 way: integrated loudness in LUFS, loudness range in LU and true peak in dBTP. Use it to check a mix or an export against a delivery target (-14 LUFS for streaming music, -16 for podcasts, -23 for EBU broadcast, -24 for ATSC). With target_lufs it also returns gain_to_target_db and the true peak after that gain (apply the gain with adjust_clip_volume, or use normalize_audio_file to write a corrected file). silent=true when the audio is too quiet to measure. For plain peak and average level use measure_volume_of_file. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

measure_volume_of_fileA

Measure the plain sample level of a file's audio (ffmpeg volumedetect): max_volume_db is the highest sample peak in dBFS (0 = full scale, clipping risk), mean_volume_db the RMS level in dBFS. Also returns headroom_db, the gain that would bring the peak to 0 dBFS. Faster than measure_loudness_of_file, which is the tool for LUFS delivery targets. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

detect_beats_in_fileA

Find rhythmic onsets (beats, hits, transients) in a file's audio by decoding it and picking energy peaks, and estimate the tempo. Returns beat_times in file time (seconds from the start of the file), beat_count, median_beat_interval, tempo_bpm and tempo_confidence (0-1). Use it to cut to music: place markers (add_markers) or cuts (razor_at_times) at the returned times (for a clip at 100 % speed: sequence time = clip start + file time - clip in point). tempo_bpm is null when no steady pulse is found. Works best on music with clear percussion; for speech use detect_silence_in_file instead. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

get_audio_waveform_of_fileA

Reduce a file's audio to a fixed number of peak values (0-1, where 1 is full scale) spread evenly over the analysed time, for drawing a waveform or reasoning about where the loud and quiet parts are. Point i covers the file time from analyzed_start + i * seconds_per_point. Each peak is the highest absolute sample of any channel (up to 8) in that slice. Also returns max_peak and max_peak_db. For exact silent ranges use detect_silence_in_file; for beats use detect_beats_in_file. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

find_audio_sync_offset_between_filesA

Find how far apart two recordings of the same event are in time by comparing their audio (cross-correlation of the loudness envelopes): camera sound against an external recorder, or two cameras. Returns offset_seconds: the time in the reference file at which the other file starts. Positive: the other recording started later, so place its clip offset_seconds after the start of the reference clip; negative: it started earlier. confidence (0-1) is the correlation at that offset and runner_up the best score more than 0.5 s away; reliable is true when confidence >= 0.3 and beats runner_up by at least 0.05. Precision is about 0.01 s. Fails with FFMPEG_FAILED when either file has no level changes to compare (silence, constant tone). Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

extract_frame_from_fileA

Decode one frame of a video file (or load an image file) and return it as an image so you can look at it, followed by its time, size and saved_path. Optionally saves it as JPEG or PNG. To see a frame of a sequence with its effects use capture_frame instead; for many frames of a file at once use make_contact_sheet_of_file. You get the frame that is on screen at time (the result reports its exact start time); a time at or past the end returns the last frame with a note. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

make_contact_sheet_of_fileA

Build one image with a grid of frames taken at even intervals from a video file, and return it as an image so you can see the whole clip at a glance, followed by the time of every tile. Tiles run left to right, top to bottom; times lists their file times in seconds in that order (each tile is taken from the middle of an equal slice of the range). Saved to output_path when given. Use it to find a moment or to review a long clip; use extract_frame_from_file for one frame at full quality. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

extract_audio_from_fileA

Write one audio stream of a media file to an uncompressed WAV file, optionally only a time range, with a chosen sample rate, channel count and bit depth. Use it to get the sound of a video as a separate file to import, to send to another program, or to analyse. The source is not changed. Returns the new file's output_path, duration, sample rate, channels and size, plus source_start/source_end. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

trim_media_fileA

Write the part of a media file between start and end to a new file. mode "copy" (default) copies the streams without re-encoding: instant and lossless, but video can only start on a keyframe, so the result may begin slightly before start. mode "reencode" is frame accurate and re-encodes (H.264 + AAC for .mp4/.mov/.mkv, the container's default codecs otherwise). Returns the new file's actual duration and streams, and a note when a copy-mode duration differs from the request. This makes a new file on disk and leaves the source unchanged; to trim a clip in a sequence use trim_clip_start / trim_clip_end. Still images cannot be trimmed (BAD_ARGS). Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

concat_media_filesA

Join two or more media files into one new file, in the order given. mode "reencode" (default) works for any mix of sizes, frame rates and codecs: every file is scaled and padded to one frame size and frame rate (default: those of the first file), only the first audio stream of each file is used (stereo 48 kHz), files without sound get silence, still images last 5 s each, and the result is H.264 + AAC (.mp4/.mov/.mkv) or, for audio-only inputs, the container's default codec (24-bit PCM for .wav). mode "copy" joins without re-encoding and only works when all files have identical codecs, size, frame rate and audio format (for example segments from one camera). Mixing video files with audio-only files fails with BAD_ARGS. Returns the new file's duration and streams, file_count and sum_of_source_durations. To put clips one after another in a sequence use add_clips_sequentially instead. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

create_proxy_fileA

Encode a small H.264 + AAC copy of a video file for smooth editing of heavy footage (4K, long-GOP, RAW transcodes): same duration, frame rate, audio streams and start timecode, lower resolution. Never upscales. Attach the result to the project item with attach_proxy. Returns the proxy's size, frame size and duration, the source's, and size_percent_of_source. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

normalize_audio_fileA

Write a copy of a file's audio with its loudness brought to a target in LUFS (EBU R128, ffmpeg loudnorm, two passes: measure, then correct with a true-peak limit). The whole file is processed (no time range) and only the chosen audio stream is written. The source is not changed. Output .wav (24-bit PCM) or another audio extension; with a .mp4/.mov/.mkv output the video stream is copied and the audio is AAC. Returns before and after loudness (after is measured on the new file), gain_db and method (linear, or dynamic when loudnorm had to compress). To change loudness without a new file, measure with measure_loudness_of_file and use adjust_clip_volume. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

convert_image_fileA

Write an image file in another format and/or size: PNG, JPEG, TIFF, BMP, WebP or TGA, chosen by the extension of output_path. Give width or height to resize keeping the aspect ratio, or both together with fit. Use it to make an oversized still lighter before importing, or to convert a format Premiere does not read. Returns the new file's format, width, height and size, and the source's size. Given a video file it converts the first frame (extract_frame_from_file picks any frame). Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

generate_color_matte_fileA

Create a solid-colour media file to import: a still image (.png, .jpg, .tif) or a video of a given length (.mp4, .mov), chosen by the extension of output_path. Use it for backgrounds, slugs and placeholders when a file is needed. The video has no audio stream. Returns the new file's size, frame size, color and, for video, duration and fps. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

generate_test_pattern_fileA

Create a video file with a test pattern and, unless turned off, a reference tone: SMPTE HD colour bars, or ffmpeg's test charts with moving elements and a counter. Use it for leader bars and tone, for calibration, or as placeholder media with visible motion. Output is H.264 (+ AAC stereo tone) in .mp4 or .mov. Returns the new file's duration, frame size, fps, pattern and tone. Use generate_tone_file for tone alone. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

generate_tone_fileA

Create a 24-bit WAV file with a sine tone of a given frequency, length and peak level: reference tone for leaders, a bleep to cover a word, or test audio. Returns the new file's duration, sample rate, channels, frequency and level_db. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

generate_silence_fileA

Create a 16-bit WAV file of digital silence of a given length: room for a gap, a spacer between audio clips, or a placeholder track. Returns the new file's duration, sample rate and channels. To leave a gap in a sequence use insert_gap instead. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

compute_file_checksumA

Compute the MD5 or SHA-256 checksum of a file's bytes, with its size. Two files with the same checksum have identical content whatever their names, so use it to confirm a copy or to compare two candidates. Returns path, algorithm, checksum (hex), size_bytes and elapsed_ms. To search a whole folder for duplicates use find_duplicate_media_files. Works on files on disk; needs neither Premiere Pro nor ffmpeg.

list_media_files_in_folderA

List the video, audio and image files in a folder on disk with their sizes in bytes, kind and modification time, optionally including subfolders. Use it to see what is available to import (import_files), or to pick files for the other *_file tools. Kind is decided by extension. Hidden files and folders and symbolic links are skipped; a scan stops after 200000 entries (truncated=true). Returns counts and total size per kind and the files sorted by path. Works on files on disk; needs neither Premiere Pro nor ffmpeg.

find_duplicate_media_filesA

Find files with identical content in a folder (and, by default, its subfolders), whatever their names: files of equal size are compared by MD5 checksum. Returns groups of identical files (largest waste first) with the size of one copy and wasted_bytes, the bytes that deleting the extra copies would free. It only reports; nothing is deleted. Reading large folders can take a while. Works on files on disk; needs neither Premiere Pro nor ffmpeg.

pingA

Check that Premiere Pro answers a script call. Returns pong=true, the Premiere and host-library versions, whether a project is open and its name. Call it first when another tool reports NOT_RUNNING or TIMEOUT; if it fails too, use get_bridge_status, which also works while Premiere's script engine is stuck.

get_bridge_statusA

Report the connection between this server and the Premiere Pro bridge panel: endpoint, panel and Premiere versions, round-trip latency in milliseconds, and whether Premiere's script engine is running a call (and for how long). It does not run a script, so it works while the engine is stuck. Never fails: when Premiere is not reachable it returns connected=false with an error code and a hint.

get_app_infoA

Return Premiere Pro's version and build, install path, OS, locale, ExtendScript and host-library versions, whether the QE DOM is available, the open projects (name, path), the active project, whether proxies are enabled, and the preference folder paths. Use ping for a quick liveness check and list_open_projects for more detail on projects.

find_toolsA

Search this server's tools by keyword and/or toolset. Use it to find the right tool instead of guessing a name. Every word of the query must appear (case-insensitive substring) in the tool's name, title or description. Returns total (all matches) and, for up to limit matches, name, toolset, title and the first sentence of the description.

list_toolsetsA

List the toolsets (groups) this server exposes, sorted by name, with the number of tools in each and the overall total. Pass a toolset name to find_tools (group) to see its tools.

execute_extendscriptA

Run arbitrary ExtendScript inside Premiere Pro and return its result. Use it only when no dedicated tool covers the task (search with find_tools first); it can change or delete anything. ExtendScript is ES3: no let/const, arrow functions, JSON or Array.prototype.map. The helper library is available as $._pmcp (e.g. $._pmcp.seq({}), $._pmcp.json.stringify). Returns {result, type}; host objects in the result are converted to plain data. Premiere runs one script at a time, so a long script blocks every other tool until it ends; avoid loops of QE calls and never call APIs that open a dialog.

inspect_dom_objectA

List the members of a Premiere Pro scripting object: class name, property names (optionally with current values) and method names. Use it to discover API members before writing execute_extendscript code. Example paths: "app", "app.project", "app.project.activeSequence.videoTracks[0]", "app.project.activeSequence.getSettings()", "qe.project.getActiveSequence()"; a path starting with "qe" enables the QE DOM first. Only a property path is accepted: names, [index] and get*/is*/has*/can* calls with no argument or one number, so inspecting cannot change anything. Account and credential members (app.anywhere, userGuid) are refused.

list_workspacesA

List the names of every workspace (panel layout) in Premiere Pro, including the user's own. Returns count, workspaces, and last_recorded_workspace: the workspace named in Premiere's preferences, which is written when preferences are saved and can lag behind a recent switch (Premiere has no API for the workspace on screen; null when unknown). Use set_workspace to switch.

set_workspaceA

Switch Premiere Pro to a workspace (panel layout) by name. This rearranges the user's panels and takes 3-10 s, so use it only when asked. Fails with NOT_FOUND (listing the available names) when no workspace has that name. Returns the workspace name Premiere switched to.

get_proxies_enabledA

Report whether the application-wide Enable Proxies toggle is on (enabled=true/false). When on, clips that have a proxy attached play back from the proxy instead of the full-resolution media. Use set_proxies_enabled to change it.

set_proxies_enabledA

Turn the application-wide Enable Proxies toggle on or off. It affects playback of every clip that has a proxy attached, in all open projects; it does not create or attach proxies (see attach_proxy). Returns the new state, the previous state and whether it changed.

show_event_messageA

Post a message to Premiere Pro's Events panel (Window > Events). Use it to leave the editor a visible note about what an automated step did. It does not open a dialog and does not wait for the user. Returns posted=true with the level and message.

get_preferenceA

Read one Premiere Pro preference by its key (the names used in the 'Adobe Premiere Pro Prefs' file). Returns exists, value (the text Premiere stores), parsed (the same as a boolean or number when the text is one) and read_only. A key that does not exist returns exists=false and value=null, not an error. Use has_preference to check existence only.

has_preferenceA

Check whether a Premiere Pro preference key exists, and whether it is read-only, without returning its value. Returns key, exists and read_only. Use get_preference for the value.

set_preferenceA

Write one Premiere Pro preference. Preferences are application-wide and many are only read at startup, so a change may need a restart to take effect; a wrong value can change how Premiere behaves, so read the current value with get_preference first. Returns the value read back after the write, the previous value, and whether the key existed and changed. Fails with NOT_FOUND if the key does not exist and create=false, UNSUPPORTED if it is read-only, FAILED if the value does not read back.

clear_preferenceA

Delete one Premiere Pro preference key, so Premiere falls back to its built-in default for it. Returns whether the key existed before, its previous value, and whether it still exists afterwards. Clearing a key that does not exist is not an error; a read-only key fails with UNSUPPORTED.

list_sequence_presetsA

List the sequence presets (.sqpreset files) installed with Premiere Pro (several hundred). Returns each preset's name, its folder (category path such as "Digital SLR/1080p") and the full file path, which is what create_sequence_from_preset and create_sequence take as preset_path. Pass filter to keep the result small.

convert_timeA

Convert a time value between seconds, frames, ticks (254016000000 per second, Premiere's internal unit) and timecode at a given frame rate. Pure arithmetic: Premiere Pro is not called and no project is needed, so it ignores any sequence start time; use sequence_time_to_timecode or sequence_timecode_to_time for a sequence's own ruler. 23.976, 29.97 and 59.94 are treated as the exact NTSC rates (n*1000/1001). Drop-frame timecode (29.97 and 59.94 only) is written 00;00;00;00 and non-drop 00:00:00:00. Returns all four representations; frames is the nearest frame (0-based) and frame_aligned says whether the input fell exactly on it.

create_rough_cutA

Build a new sequence from many project items in one call: picks the items (item_ids, or a bin with optional name filter), orders them (given / name / file date / Project-panel order), optionally shortens each to max_clip_seconds taken from its start or its middle, places them one after another on V1 (picture) and A1 (their audio) with an optional gap, and optionally puts a transition on every cut (only when gap_seconds is 0). The sequence settings match the first item. Stills get still_seconds each. Audio-only items and sequences are skipped. Returns the new sequence, the placed V1 clips with their start/end, and the transitions added. dry_run returns the plan (items, source ranges, planned starts) without creating anything.

create_slideshowA

Build a new sequence from still images (item_ids, or a bin with optional name filter): each still is seconds_per_still long, back to back on V1, optionally with a transition (e.g. Cross Dissolve) on every cut, and optionally a music item (music_item_id, already in the project) on A1 under the pictures, trimmed to the picture length or looped until it is filled (music_mode). The sequence settings match the first still. Returns the new sequence, the V1 clips, the music clips and the picture length. dry_run returns the plan only.

remove_silencesA

Find the silent parts of a clip's source media with ffmpeg (or of every clip on one audio track), map them to timeline time (clip start + source time - clip in point), and ripple-delete those ranges. Each range is extracted on ALL tracks (like a sync-locked ripple delete), so linked video/audio and everything else stays in sync; material of other clips inside a removed range is removed too. Clips with a speed other than 100 % or reversed are refused. Pass clip_id (or track_type + track_index + clip_index), or track_type + track_index alone for every clip of that track. Returns the removed ranges (timeline times before the edit), seconds_saved and the sequence duration before and after. dry_run returns the ranges only. Needs ffmpeg.

create_social_versionsA

Make reframed copies of a sequence for social platforms with Auto Reframe: one new sequence per format (9x16 vertical, 1x1 square, 4x5 portrait, 16x9), named " 9x16" etc. The source sequence is not changed. Auto Reframe keeps analysing in the background after the call returns (see get_sequence_render_status). Returns each new sequence with its frame size. dry_run returns the planned names only.

add_scene_markersA

Detect the shot changes inside one timeline clip's source video with ffmpeg (scene score) and add a sequence marker at each change, mapped to timeline time (clip start + source time - clip in point). Only the part of the media the clip uses is analysed. Pass clip_id (or track_type + track_index + clip_index). Returns the markers added (time, name). dry_run returns the times only. Needs ffmpeg.

cut_to_beatsA

Build a new sequence cut to music: detects the beats of a music item's media with ffmpeg, then places the pictures (item_ids or a bin; videos and stills, picture only) on V1 so that every cut lands on a beat (one cut every every_n_beats beats), with the music on A1 from its in point. Items are used in order and repeated when there are more segments than items; a video shorter than its segment is skipped for that segment. The cut ends with the music (or at max_seconds). Returns the new sequence, the cut times and the V1 clips. dry_run returns the beat and cut plan only. Needs ffmpeg.

get_clip_volumeA

Read an audio clip's Volume > Level in dB, whether it is keyframed (with the keyframes in sequence time and dB), whether Volume is bypassed, and the raw stored value. Levels are in dB as shown in Premiere's Effect Controls (0 dB = unchanged, maximum +15 dB). A level of -100 dB or lower means silence (-infinity). The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

set_clip_volumeA

Set an audio clip's Volume > Level to a fixed dB value (the same knob as Effect Controls > Volume > Level; not clip gain). If the level is keyframed the call fails with UNSUPPORTED unless clear_keyframes=true, which removes the keyframes first. Returns the level read back in dB. Levels are in dB as shown in Premiere's Effect Controls (0 dB = unchanged, maximum +15 dB). A level of -100 dB or lower means silence (-infinity). Use set_clips_volume for many clips, adjust_clip_volume for a relative change. The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

set_clips_volumeA

Set Volume > Level (dB) on many audio clips at once: by clip ids and/or every clip on given audio tracks. Keyframed clips are skipped (reported with an error) unless clear_keyframes=true. Returns per-clip results with the level read back. Levels are in dB as shown in Premiere's Effect Controls (0 dB = unchanged, maximum +15 dB). A level of -100 dB or lower means silence (-infinity).

adjust_clip_volumeA

Raise or lower an audio clip's Volume > Level by a number of dB (e.g. -3 or +2). If the level is keyframed, every keyframe is shifted by the same amount so the envelope keeps its shape. Silent points (-infinity) stay silent. Results are clamped to +15 dB. Returns the level (or keyframes) before and after. The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

get_clip_panA

Read an audio clip's Panner > Balance as -100 (full left) .. 0 (centre) .. +100 (full right), plus the raw value and the number of pan keyframes. Clips without a panner give NOT_FOUND. The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

set_clip_panA

Set an audio clip's Panner > Balance (static): -100 = full left, 0 = centre, +100 = full right. Fails with UNSUPPORTED when the balance is keyframed. Returns the pan read back. The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

fade_in_audioA

Fade an audio clip in by writing two Volume > Level keyframes: floor_db at the clip's first frame and level_db at clip start + duration. Existing volume keyframes inside the fade are replaced; others are kept. level_db defaults to the clip's current level at that point. For a crossfade between two clips use the transitions tools. Returns the keyframes now on the clip (sequence time, dB). The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

fade_out_audioA

Fade an audio clip out by writing two Volume > Level keyframes: level_db at clip end - duration and floor_db at the clip's last frame. Existing volume keyframes inside the fade are replaced; others are kept. level_db defaults to the clip's current level there. Returns the keyframes now on the clip (sequence time, dB). The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

add_volume_keyframesA

Write Volume > Level keyframes on an audio clip from a list of {time, level_db} pairs. Times are sequence seconds and must fall inside the clip; a keyframe already at a time is updated. replace_existing=true removes all volume keyframes first. Returns the keyframes now on the clip (sequence time, dB). For any other parameter use the effects group's add_keyframes. Levels are in dB as shown in Premiere's Effect Controls (0 dB = unchanged, maximum +15 dB). A level of -100 dB or lower means silence (-infinity). The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

get_volume_keyframesA

List the Volume > Level keyframes of an audio clip as {time (sequence seconds), clip_time (clip source seconds), level_db}. level_db is null for silence (-infinity). Also returns the static level when the clip has no keyframes. The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

clear_volume_keyframesA

Remove all Volume > Level keyframes of an audio clip (or only those between start_time and end_time, sequence seconds) and, when all are removed, turn animation off. Optionally set a fixed level_db afterwards. Returns how many were removed and the resulting level. The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).

duck_audioA

Automatic ducking: lower the "music" clips by duck_db wherever a "voice" clip plays, with an attack ramp before and a release ramp after each voice range. Voice ranges come from the voice clips' timeline positions (start..end), merged when closer than merge_gap. Writes Volume > Level keyframes on each overlapping music clip (existing keyframes inside the ducked spans are replaced) relative to the music's current level. Returns the voice ranges and, per music clip, the keyframes written (sequence time, dB). Voice and music may be given as clip ids and/or audio track indices.

mute_audio_rangeA

Silence audio between start_time and end_time (sequence seconds), e.g. to bleep a word, by writing Volume > Level keyframes: the current level at start_time - ramp, silence from start_time to end_time, back to the current level at end_time + ramp. Acts on one clip (clip_id or track_index + clip_index) or on every clip of the given audio tracks that overlaps the range. Returns the keyframes written per clip.

get_track_audio_infoA

Summarise one audio track: name, mute and lock state, the channel layouts of its clips (stereo/mono/5.1, from each clip's Volume component), the number of clips and their total duration, each clip's start/end and Volume level (dB, or keyframe count when animated), and the effects in the track's rack. Read-only.

list_track_audio_effectsA

List the effects in an audio TRACK's effect rack (the Audio Track Mixer's 5 slots): slot number (1-5), effect name and whether it is bypassed. Track effects process every clip on the track; for clip effects use list_clip_effects.

apply_track_audio_effectA

Put an audio effect into an audio TRACK's effect rack (not on a clip), e.g. "Multiband Compressor" or "Parametric Equalizer", so it processes the whole track. Goes into the first empty slot (1-5) unless slot is given; an occupied slot is only overwritten with replace=true. Effect names are those of list_audio_effects. Returns the slot used and the rack read back; fails if the effect did not land there. Premiere's scripting cannot delete a track effect: switch it off with set_track_audio_effect_bypass or overwrite its slot.

set_track_audio_effect_bypassA

Switch a track-rack audio effect off (bypassed=true) or back on (false). Address it by slot (1-5) or effect_name. This is also the way to disable a track effect, since Premiere's scripting cannot delete one. Returns the bypass state read back.

get_selected_clipsA

List the clips selected in a sequence's timeline (video and audio), each with clip_id, name, track, start/end in sequence seconds, speed and source item id. Returns selected_count 0 and an empty clips list when nothing is selected. To filter the selection further use find_clips with selected=true.

select_clipsA

Select timeline clips by clip_id. Replaces the current selection unless add_to_selection is true. Linked partners are not selected unless include_linked is true. Fails with NOT_FOUND (changing nothing) if any id does not exist in the sequence. Like every select_* tool it returns matched_count (clips this call matched), selected_count and clips (the whole selection after the call).

select_all_clipsA

Select every clip in a sequence, or every clip of one track type. Always replaces the current selection. Returns matched_count, selected_count and the selected clips.

deselect_all_clipsA

Clear the timeline clip selection of a sequence. Returns deselected_count (how many clips were selected before) and the now empty selection.

select_clips_by_nameA

Select every timeline clip whose name matches a pattern (substring by default; exact, wildcard or regex via match). Clip names default to the source file name. Returns the matched clips; matching nothing is not an error (count 0) and, without add_to_selection, leaves nothing selected.

select_clips_in_rangeA

Select the clips that lie in a time range of the sequence. mode "overlap" (default) takes every clip that intersects the range; "inside" takes only clips entirely within it. Optionally limited to one track type or one track. Returns the matched clips and the resulting selection. To list clips in a range without selecting them use get_clips_in_range.

select_clips_on_trackA

Select every clip on one video or audio track. Replaces the current selection unless add_to_selection is true. Returns the matched clips and the resulting selection.

select_clips_by_itemA

Select every timeline clip (video and audio) that was made from one project item, i.e. all uses of a source clip in the sequence. Returns the matched clips. To go the other way (timeline clip to project item) use select_clip_source_in_project.

invert_clip_selectionA

Invert the timeline selection: selected clips become unselected and the others selected. With track_type, only clips of that type are inverted and the other type keeps its state. Returns the resulting selection.

select_linked_clipsA

Extend the current timeline selection so it also contains every clip linked to a selected clip (the audio of a selected video clip and vice versa). Script selection does not follow links by itself, so call this before remove_selected_clips when linked audio/video should go too. Returns how many clips were added and the resulting selection.

remove_selected_clipsA

Delete the selected clips from the timeline. ripple=false (default) leaves gaps. ripple=true also shifts later clips left to close a gap, but only where no clip on any other track still lies over the removed span (a video clip removed without its linked audio leaves its gap). Only selected clips are removed: unselected linked partners stay, so call select_linked_clips first to remove video and audio together. To remove clips by id without touching the selection use remove_clips (which removes linked clips by default). Fails with NOT_FOUND when nothing is selected. Returns the removed clips and remaining_clip_count.

set_clip_enabledA

Enable or disable one timeline clip (a disabled clip stays on the timeline but is not shown or heard). Linked clips are changed with it unless include_linked is false. Use set_clips_enabled for many clips. Returns the clip and the linked clips that were changed.

set_clips_enabledA

Enable or disable several timeline clips in one call: either the clips listed in clip_ids, or every clip matching the filter arguments (all given conditions must hold). Pass clip_ids, at least one filter, or all=true (BAD_ARGS otherwise). Linked clips are not changed unless they match too. Returns matched_count, changed_count (clips whose state actually changed) and the matched clips.

rename_clipA

Change the name of one clip instance on the timeline. The project item and the media file keep their names. Linked clips get the same name unless include_linked is false. Use rename_clips for a numbered batch. Returns the clip with its new name and the previous name.

rename_clipsA

Rename several timeline clips with a pattern such as "Shot {n}". Targets: clip_ids (numbered in the given order), or every clip matching the filter arguments (numbered in timeline order: by start time, then video before audio, then track), or all=true. Placeholders: {n} running number, {name} current clip name, {source} project item name, {track} track label such as V1 or A2, {index} 0-based position in its track. Linked clips are not renamed unless they are targets too (rename_clip renames them). Returns renamed_count and each clip with previous_name and name.

get_clip_speedA

Read a clip's playback speed settings: speed as a multiplier (1 = 100 %, 2 = double speed), speed_percent, reversed, start/end/duration in sequence seconds, time_interpolation (frame_sampling, frame_blending or optical_flow) and frame_blend. The sequence is made active briefly to read the QE-only flags; the previously active sequence is restored.

set_clip_speedA

Change a clip's playback speed (Speed/Duration). speed is a multiplier: 1 = 100 %, 2 = 200 %, 0.5 = 50 %. A faster clip gets shorter in proportion (2 halves it) and leaves a gap after it; nothing is rippled. A slower clip keeps its timeline duration, so it shows only the first part of its source: lengthen it afterwards with trim_clip_end to reveal the rest. Reliable only on clips that show their whole source: on a trimmed or razored clip Premiere often applies a different speed, so the tool undoes the change and fails with UNSUPPORTED. Stills, adjustment layers and graphics have no speed (UNSUPPORTED). Linked clips get the same speed unless include_linked is false; any Premiere refuses are listed in linked_not_changed. Use reverse_clip to only flip the direction. Leaves the sequence active. Returns the clip re-read after the change (speed, reversed, new duration), previous, and linked_changed.

reverse_clipA

Make a clip play backwards (or forwards again) while keeping its speed, its duration and the part of the source it shows. Works on trimmed clips too. Use set_clip_speed to change the speed as well. Linked clips are reversed with it unless include_linked is false; any Premiere refuses are listed in linked_not_changed. Stills and graphics cannot be reversed (UNSUPPORTED). Leaves the sequence active. Returns the clip re-read after the change, previous and linked_changed.

set_clip_frame_blendA

Turn frame blending on or off for a video clip. On is the same as time interpolation frame_blending; off returns the clip to frame_sampling. Use set_clip_time_interpolation to choose optical flow. Video clips only (BAD_ARGS for audio). Leaves the sequence active. Returns frame_blend and time_interpolation as read back.

set_clip_time_interpolationA

Choose how a video clip builds in-between frames when its speed or frame rate differs from the sequence: frame_sampling (repeat/drop frames), frame_blending (cross-fade frames) or optical_flow (synthesise frames from motion; slowest, smoothest for slow motion). Video clips only (BAD_ARGS for audio). Leaves the sequence active. Returns time_interpolation and frame_blend as read back.

set_clip_scale_to_frame_sizeA

Turn the timeline option Scale to Frame Size on or off for a video clip. On resamples the clip to the sequence frame size (a 4K clip fills an HD frame at Scale 100). It does not change the Motion effect's Scale value (use set_clip_scale or fit_clip_to_frame for that). Video clips only (BAD_ARGS for audio). Leaves the sequence active. Returns scale_to_frame_size as read back.

link_clipsA

Link timeline clips so they select and move together (Clip > Link): typically one video clip with one or more audio clips. Premiere refuses clips that already belong to another link group (unlink_clips them first) and clips on the same track. The timeline selection is replaced by the given clips and the sequence becomes active. Fails with FAILED, leaving the links as they were, if Premiere refuses. Returns the linked clips.

unlink_clipsA

Break the link between a clip and its linked partners (Clip > Unlink) so video and audio can be edited separately. Pass one clip of each link group to break; the whole group is unlinked. Clips without a link are reported in not_linked. The timeline selection is replaced and the sequence becomes active. Returns the clips that were unlinked.

get_linked_clipsB

Return the clips linked to a timeline clip (for a video clip, usually its audio): is_linked, linked_count and linked. linked is empty and is_linked false for an unlinked clip.

get_clip_detailsA

Read one timeline clip's properties in a single call: position (sequence seconds), source_in/source_out, enabled, selected, speed, reversed, time interpolation, frame blend, Scale to Frame Size, adjustment layer / Motion Graphics Template flags, linked clip ids and the source project item. Use get_clip_source_info when only the source media matters, and get_clip_info for neighbours, gaps and effect names. Briefly activates the sequence to read the QE-only flags, then restores the previously active one.

get_clip_source_infoA

Describe where a timeline clip comes from: the source project item (id, name, bin path, kind), media file path, offline state, the part of the source the clip covers (source_in < source_out, in clip source time: seconds from the media start, speed already applied; a reversed clip plays that range backwards), the source item's own in/out points and duration, the clip's speed and direction, and whether it is an adjustment layer or a Motion Graphics template. source_range_exact is false for reversed clips: their range is derived from the item's out point and is off if the project item has an out mark. Clips without a project item (some graphics) return item null.

find_clipsA

Search a sequence for clips. Combine any of: name pattern, track, source project item, media path, disabled, selected, adjustment layer, Motion Graphics template, minimum/maximum duration, time range. All given conditions must hold; with no condition every clip is returned. Results are in timeline order (start time, video before audio, track). Returns total (all matches), returned and clips (up to limit). Does not change the selection. list_clips is the simpler listing in track order; select_clips_by_name / set_clips_enabled / rename_clips take the same filters.

count_clipsA

Count the clips of a sequence without listing them: totals for video and audio, per track (clip_count, disabled_count and total_duration in seconds), and per source project item (how many timeline clips use it, most used first). Use it to see which sources are used most or which tracks are empty.

get_clip_neighborsA

Return the previous and the next clip on the same track as a clip, with gap_before and gap_after in seconds (0 = the clips touch). previous/next are null at the ends of the track; gap_before is then the distance from the sequence start and gap_after is null. Use find_sequence_gaps for every gap of a sequence.

select_clip_source_in_projectA

Select the project item a timeline clip was made from in the Project panel (like Reveal in Project). Replaces the Project panel selection. Fails with NOT_FOUND if the clip has no project item. Returns the item and whether the Project panel selection now contains it.

match_frameA

Find the source frame behind a timeline frame. For a timeline time (default: the playhead) and a clip (default: the enabled clip under that time on the highest video track, else the first audio clip there), return the source project item, media path and source_time: the position in the source media, in seconds from the media start, that plays at that timeline time. Clip speed and reverse are taken into account. exact is true for forward clips; for reversed clips it is false: the position is mirrored around the source length read from the project item's out point, so it can be a frame off, and is wrong if the item has an out mark. Computed from clip data: it does not open the Source Monitor or move the playhead (use open_in_source_monitor for that). Fails with NOT_FOUND if no clip is under the time, BAD_ARGS if the time is outside the given clip, UNSUPPORTED for a reversed clip whose media length cannot be read.

apply_lumetriA

Make sure a video clip has a Lumetri Color effect: adds one with default settings, or returns the existing one (no second instance unless always_add is true). Returns lumetri_index, effect_index (position among all of the clip's effects), whether it was added, and the parameter count. Use the set_lumetri_* tools afterwards.

get_lumetri_settingsA

Read a clip's Lumetri Color effect. Returns the named controls (basic, creative, vignette: plain numbers keyed like the set_lumetri_* arguments), the applied look and LUT, and, with include_all, every one of its ~130 parameters grouped by panel section (general, basic, creative, curves, color_wheels, hsl_secondary, vignette, other) with param_index, display name and value. Many Lumetri parameters have empty or duplicated display names: use param_index with set_lumetri_parameter. Opaque data parameters (curves, wheels, LUT blobs) report value_type "data" and no value. Read-only.

set_lumetri_basicA

Set any subset of the Lumetri Color Basic Correction sliders on one clip (exposure, contrast, highlights, shadows, whites, blacks, temperature, tint, saturation). Adds Lumetri Color first when the clip has none (add_if_missing). Values are static (fails on a keyframed slider). Returns each slider's previous and new value read back from Premiere.

set_lumetri_creativeA

Set the Lumetri Color Creative section on one clip: look intensity, faded film, sharpen, vibrance, saturation and tint balance (any subset). To choose the look itself use apply_lumetri_look. Adds Lumetri Color first when missing. Returns previous and new values read back.

set_lumetri_vignetteA

Set the Lumetri Color Vignette section on one clip (any subset). Negative amount darkens the edges, positive lightens them. Adds Lumetri Color first when missing. Returns previous and new values read back.

set_lumetri_parameterA

Set one Lumetri Color parameter by param_index (from get_lumetri_settings with include_all) for anything the named tools do not cover, e.g. HSL Secondary or section on/off switches. Numbers and booleans are set with value; colour parameters (e.g. White Balance) with color. Opaque data parameters cannot be set. Returns the previous and new value read back.

reset_lumetriA

Put every parameter of a clip's Lumetri Color back to its default (the values of a freshly added Lumetri Color), keeping the effect in place. Returns how many parameters changed and any that could not be reset. Use remove_lumetri to delete the effect instead.

remove_lumetriA

Delete Lumetri Color effects from a clip: one instance (lumetri_index) or all of them (all=true). Other effects and the intrinsic Motion and Opacity are untouched. Returns how many were removed and the clip's remaining effects.

copy_color_gradeA

Copy every Lumetri Color parameter (basic, creative and look, curves, wheels, HSL, vignette) of one source clip to one or more target clips in the same sequence. A target without Lumetri Color gets one; a target that has one is overwritten. Keyframed source parameters are copied as their current static value. Returns per target how many parameters were copied and which failed.

grade_clipsA

Apply the same Lumetri Basic Correction values to several video clips in one call: give clips, or video track_index to grade every clip on that track. Adds Lumetri Color where missing. Returns per clip the values read back, or the error.

list_lumetri_looksA

List the Lumetri look presets installed in Premiere Pro (about 325: Cinespace, film stocks, Monochrome, SpeedLooks...), optionally filtered by a case-insensitive substring. Returns names that apply_lumetri_look accepts. Read-only.

apply_lumetri_lookA

Apply one of Premiere's Lumetri look presets (see list_lumetri_looks) to a video clip, exactly as dropping it from the Effects panel: the preset arrives as a NEW Lumetri Color instance (first among the applied effects) carrying the look's creative LUT, input LUT and settings. Set replace_existing to remove the clip's older Lumetri Color instances. Tune the look's strength afterwards with set_lumetri_creative look_intensity. Works through Premiere's selection (the clip is selected for the call and the previous selection restored). Returns the new instance's lumetri_index, the look file and input LUT it uses, and its creative values.

apply_brightness_contrastA

Add a Brightness & Contrast effect to a video clip and set it. A quick level fix that is lighter than Lumetri. Returns the new effect's effect_index and the values read back (Premiere clamps brightness and contrast to -100..100).

apply_procampA

Add a ProcAmp effect (broadcast-style processing amplifier) to a video clip and set brightness, contrast, hue and saturation in one effect. Returns the new effect's effect_index and the values read back.

get_sequence_color_settingsA

Read a sequence's colour management: working colour space, the working colour spaces it accepts, auto tone mapping, auto input gamut compression, composite in linear colour and maximum bit depth. Read-only.

set_sequence_color_settingsA

Change a sequence's colour management (any subset): working colour space (a name from get_sequence_color_settings: "Rec. 709", "Rec. 2100 HLG", "Rec. 2100 PQ", "ACEScct"), auto tone mapping, auto input gamut compression, composite in linear colour, maximum bit depth. Returns the settings read back after the change plus the previous values of what changed.

get_clip_media_color_spaceA

Report the colour space of a project item's media, or of the media behind a timeline clip: the effective colour space, the one detected from the file, the override (null when none), whether the media is colour managed, and the names set_clip_media_color_space_override accepts. Read-only.

set_clip_media_color_space_overrideA

Override the colour space Premiere assumes for a piece of media (Interpret Footage > Colour Management), e.g. tag log footage as "Sony S-Log3/S-Gamut3.Cine" so it is converted correctly, or remove the override with clear=true. Address the media by project item, or by a timeline clip. It affects every use of the media. Returns the effective colour space read back and the previous one.

get_project_color_settingsA

Read the project-wide colour settings that scripts can reach: the LUT interpolation method code and the codes this build supports (Project Settings > Color offers Trilinear and Tetrahedral), and the graphics white luminance in nits with its supported values (100, 203, 300). Read-only.

set_project_color_settingsA

Change the project's LUT interpolation method (a code from get_project_color_settings) and/or graphics white luminance (nits: 100, 203 or 300, used when mapping graphics and titles into HDR). Returns the settings read back and the previous values.

list_delivery_targetsA

List the built-in delivery targets (youtube_1080p, youtube_4k, vimeo_1080p, instagram_reel_9x16, instagram_feed_4x5, tiktok_9x16, x_1080p, linkedin_1080p, facebook_1080p, podcast_audio_mp3, master_prores_or_high_bitrate, review_proxy) with frame size, aspect, fps rule, max duration, codec and audio spec, and the real .epr preset each maps to on THIS machine (preset_name, preset_path, extension). A target whose presets are not installed is reported available=false. Use the ids with export_for_platform / export_deliverables.

export_for_platformA

One-call platform export: checks the sequence against the target (aspect, resolution, duration, fps), auto-reframes a copy when the aspect differs (reframe="auto"), encodes inside Premiere with the target's preset (no Media Encoder), then verifies the file (exists, size, and with ffprobe its duration, frame size and aspect). Output: output_path, or output_folder/" - .". Returns output_path, size_bytes, duration, video/audio stream info, pre_checks, output_checks, passed, failed_checks, the preset used and the reframed sequence (if any). Use export_deliverables for several targets at once.

export_deliverablesA

Export one sequence for several targets into one folder (" - ."), plus optional extras: a JPEG thumbnail (at thumbnail_time, default the middle), YouTube chapters text from the sequence markers, an SRT from the markers or from a given .srt file, and manifest.json listing every file with size and sha256. Each target is exported as export_for_platform does (with reframe and verification); a target that fails is reported in errors and the rest continue. Returns files, per-target results, errors and the manifest path.

export_thumbnail_candidatesA

Write N evenly spaced frames (or one per sequence marker) of a sequence as JPEGs into a folder (" - thumb NN.jpg"), then build a contact sheet with ffmpeg and return it as an image so you can pick one. At most 12 frames; one host call per frame. Returns the image plus JSON with every frame's index, time, timecode and path, and the contact sheet path (null when ffmpeg is missing; then the first frame is returned as the image).

export_review_copyA

Export a small, fast H.264 review copy of a sequence (Match Source - Adaptive Low Bitrate preset, inside Premiere, no Media Encoder) to output_folder/" - review.mp4" or output_path. No timecode is burnt in (burnt_in_timecode is always false: no shipped preset does it and adding an effect would change the edit). Returns output_path, size_bytes, duration, video info and checks.

list_video_effectsA

List the video effects installed in this Premiere Pro (about 150), optionally filtered by a case-insensitive substring. Returns total_installed, count and effects: the exact names that apply_video_effect and apply_effect_to_clips accept. Use list_video_transitions for transitions.

list_audio_effectsA

List the audio effects installed in this Premiere Pro (about 50), optionally filtered by a case-insensitive substring. Returns total_installed, count and effects: the exact names that apply_audio_effect and apply_effect_to_clips accept.

apply_video_effectA

Add a video effect with default settings to one video clip by its exact name (see list_video_effects; case-insensitive, no partial match). An audio clip fails with BAD_ARGS. Returns the new effect's effect_index, display name, match name and parameter list, ready for set_effect_parameter. Premiere lists a new video effect first among the applied effects (right after the intrinsic Opacity and Motion), so the effect_index of effects applied earlier grows by one: address those by effect_name or re-read list_clip_effects. Use apply_effect_to_clips for several clips; apply_gaussian_blur, apply_tint etc. also set values in one call.

apply_audio_effectA

Add an audio effect with default settings to one audio clip by its exact name (see list_audio_effects; case-insensitive, no partial match). Pass track_type "audio" when addressing the clip by position (the default is video, which fails with BAD_ARGS). A new audio effect goes last in the clip's effect list. Returns the new effect's effect_index, display name, match name and parameter list. For an effect on a whole audio track use apply_track_audio_effect.

apply_effect_to_clipsA

Add the same effect to many clips of one sequence in one call. Give either clips (explicit list) or track_type (+ optional track_index) to take every clip on those tracks. Video effects go on video clips and audio effects on audio clips; clips of the other type are reported as skipped. Optionally set parameters on each new effect. A clip that fails does not stop the others. Returns effect, effect_type, clips (count), applied and one result per clip (ok, effect_index, parameter results or error).

list_clip_effectsA

List every effect (component) on a clip in the order Premiere reports them: effect_index, display name, match name, parameter_count and intrinsic (built into the clip and not removable: Opacity, Motion, Time Remapping on video; Volume, Channel Volume, Panner on audio). Follow with get_effect_parameters.

get_effect_parametersA

Read every parameter of one effect on a clip: param_index, display name, current value, value type (number, boolean, array, string, color), whether it supports keyframes, whether it is time-varying (animated) and its keyframe count. Colour parameters also carry color as [r, g, b, a] (their raw value is one packed number). A parameter that cannot be read is returned with value null and readable false. Some parameters have an empty name: address them by param_index. For an animated parameter value is not meaningful: use list_keyframes or get_parameter_value_at_time. Use get_effect_parameter for one parameter.

get_effect_parameterA

Read one parameter of an effect: current value, value type, keyframe support, time-varying state and keyframe count; for colour parameters also color as [r, g, b, a] (0-255). Pass time to also get the (interpolated) value at that time as value_at_time.

get_parameter_value_at_timeA

Return the value an effect parameter has at a given time, interpolated between keyframes when the parameter is animated. Use it to check an animation without playing it; list_keyframes gives the keyframes themselves. Fails with UNSUPPORTED for a parameter Premiere cannot evaluate at a time.

find_clips_with_effectA

Search a sequence for clips that carry a given effect (display name or match name, case-insensitive; substring with partial=true). Returns each clip with the matching effect_index values. Use it before a bulk edit or remove_effect_from_clips.

set_effect_parameterA

Set the static value of one effect parameter (number, boolean, [x, y] array or string). Returns previous_value and the value read back from Premiere, which may differ if Premiere clamped it; applied is true when the read-back value equals the request. A parameter that has keyframes is refused with UNSUPPORTED: change it with add_keyframe or call clear_keyframes first. Works on intrinsic effects too (e.g. effect_name "Opacity"); points such as Motion's Position are normalised [x, y] where [0.5, 0.5] is the frame centre. Use set_effect_parameters for several parameters of one effect, set_effect_color_parameter for colours, and the motion tools (set_clip_scale, set_clip_position ...) for transforms.

set_effect_parametersA

Set several static parameters of one effect in a single call. Each entry names a parameter (param_name or param_index) and its value. Returns per entry ok, previous_value, the read-back value and applied; entries that fail (e.g. animated parameters) are reported with ok false and an error without aborting the rest.

set_effect_color_parameterA

Set a colour parameter of an effect (e.g. Tint's "Map Black To", Drop Shadow's "Shadow Color") from r, g, b, a components 0-255. A parameter that is not a colour fails with UNSUPPORTED. Returns the colour read back as [r, g, b, a]. Use set_effect_parameter for non-colour values.

remove_effectA

Remove one applied effect from a clip, chosen by effect_index or effect_name. Intrinsic effects (Motion, Opacity, Time Remapping, Volume, Channel Volume, Panner) cannot be removed (UNSUPPORTED). Returns the remaining effects. Use remove_all_effects for every applied effect of the clip, remove_effect_from_clips for one effect across a sequence.

remove_all_effectsA

Remove every applied (non-intrinsic) effect from a video or audio clip. Intrinsic effects stay; their values are kept unless reset_intrinsic is true. Returns how many effects were removed and what remains.

remove_effect_from_clipsA

Remove every instance of a named effect from all clips of a sequence (or of one track type). Matches the effect display name or match name exactly, case-insensitively (no partial match, unlike find_clips_with_effect). Returns removed_count, clip_count and the clips touched.

copy_effectsA

Copy the applied (non-intrinsic) effects of a source clip to one or more target clips of the same sequence and the same type (video to video, audio to audio): each effect is re-applied by name and its parameter values and keyframes are copied. The targets end up with the effects in the source's order. Keyframes keep their offset from the clip's in point; copied keyframes use linear interpolation because Premiere cannot report interpolation. Set include_intrinsic to also copy Motion/Opacity (or Volume) values. For Lumetri grades copy_color_grade is the dedicated tool. Returns one result per target: the effects copied (with parameter counts), anything that failed, and the target's resulting effect list. A target of the wrong type is reported with ok false, not as a tool error.

add_keyframeA

Add a keyframe to an effect parameter at a time, optionally with a value and interpolation; turns animation (the stopwatch) on if needed. If a keyframe already exists at that time its value is updated. Without value the keyframe takes the value the parameter currently has at that time. Times are sequence seconds by default (see time_base). A parameter that cannot be keyframed fails with UNSUPPORTED. Returns time, clip_source_time, value and keyframe_count. Use add_keyframes for several keyframes, and the dedicated tools (animate_clip_transform, fade_in_clip, add_volume_keyframes) for common animations.

add_keyframesA

Add a batch of keyframes (time/value pairs, optional interpolation each) to one effect parameter; turns animation on if needed. A keyframe at an existing keyframe's time updates it. With replace_existing the parameter's current keyframes are removed first. Returns added, removed_existing and the resulting keyframe list (index, time, value).

list_keyframesA

List the keyframes of one effect parameter in time order: index, time and value, plus supports_keyframes, time_varying and (for a static parameter) its value. Interpolation types cannot be read back from Premiere. For Motion/Opacity keyframes of a clip get_transform_keyframes gives a friendlier view.

remove_keyframeA

Remove the keyframe of an effect parameter at a time. The nearest keyframe within tolerance seconds is removed; fails with NOT_FOUND when there is none. Returns removed_time and the remaining keyframe_count. Use remove_keyframes_in_range or clear_keyframes for several.

remove_keyframes_in_rangeA

Remove every keyframe of an effect parameter between start_time and end_time (both inclusive). Animation stays on. Returns removed_count, removed_times and the remaining keyframe_count.

clear_keyframesA

Remove every keyframe of an effect parameter and turn its animation off (unless keep_time_varying is true). The parameter then holds the static value it had before it was animated, not the value of a keyframe: set it with set_effect_parameter if needed. Returns removed_count, time_varying and the resulting static value.

set_keyframe_interpolationA

Set the interpolation of one keyframe (at time) or of all keyframes (all=true) of an effect parameter: linear, hold, bezier, ease_in, ease_out or ease_in_out. The interpolation governs the segment from that keyframe to the next one. Premiere cannot report interpolation back; check the effect with get_parameter_value_at_time. Fails with NOT_FOUND when no keyframe matches. Returns changed and the times of the changed keyframes.

set_parameter_time_varyingA

Turn the animation stopwatch of an effect parameter on or off. Turning it off deletes the parameter's keyframes and leaves the static value it had before it was animated (same as clear_keyframes). Turning it on fails with UNSUPPORTED for a parameter that cannot be keyframed. Returns previous, time_varying, keyframe_count and value.

apply_gaussian_blurA

Add a Gaussian Blur effect to a video clip and set its blurriness in one call (apply_video_effect + set_effect_parameter). If Premiere rejects a value the new effect is removed again and the call fails. Returns effect_index, legacy and the values read back.

apply_flipA

Mirror a video clip by adding the Horizontal Flip and/or Vertical Flip effect. direction "both" adds the two effects (a 180 degree turn). Calling it again adds another flip, which cancels the first: remove the effect instead with remove_effect. Returns added (effect names) and the clip's effect list.

apply_black_and_whiteA

Make a video clip greyscale by adding the Black & White effect (no settings). Returns the new effect_index. For a graded monochrome look use set_lumetri_basic (saturation 0) or apply_hue_saturation instead.

apply_tintA

Add a Tint effect to a video clip and set the colours that black and white are mapped to, plus the tint amount. If Premiere rejects a value the new effect is removed again and the call fails. Returns effect_index and the values read back (colours as [r, g, b, a], 0-255).

apply_mosaicA

Pixelate a whole video clip by adding the "Mosaic (Legacy)" effect (the one with block counts) and setting the number of blocks. Fewer blocks = coarser. It covers the full frame; there is no mask option. Returns effect_index and the values read back.

apply_sharpenB

Add a Sharpen effect to a video clip and set its amount in one call. Returns effect_index and the value read back.

apply_transform_effectA

Add the Transform effect (a second, effect-level transform that supports motion blur via shutter angle) to a video clip and set any of its values; omitted values keep the effect's defaults. This is not the clip's intrinsic Motion: use set_clip_transform and the other motion tools for that. Position and anchor point are normalised [x, y]: [0.5, 0.5] is the frame centre, [0, 0] the top-left corner. If Premiere rejects a value the new effect is removed again and the call fails. Returns effect_index and the values read back.

apply_drop_shadowA

Add a Drop Shadow effect to a video clip (titles, logos, scaled-down pictures) and set its look; omitted values keep the effect's defaults. If Premiere rejects a value the new effect is removed again and the call fails. Returns effect_index and the values read back (opacity in percent).

apply_warp_stabilizerA

Add the Warp Stabilizer effect to a video clip. Premiere analyses the clip in the background: this call returns immediately with analysis_started true and analysis_complete null; a script cannot wait for or read the analysis progress. The clip's frame size must match the sequence and the clip must not have speed changes, or Premiere shows a warning banner instead of stabilising. Optionally set smoothness. Returns effect_index and smoothness read back.

capture_frameA

Render one frame of a sequence and return it as an image so you can look at the edit, plus JSON metadata {time, timecode, frame, width, height, path}. Defaults to the frame at the playhead, as JPEG (small). The frame is rendered at the sequence's frame size; pass max_width to downscale (needs ffmpeg, else the full size is returned and the metadata says so). The image goes to a temp file that is deleted afterwards unless save_path is given. Use capture_frames for several frames, export_frame to only write a file.

capture_framesA

Render several frames of a sequence and return them as images (one image block per frame, in time order) followed by JSON metadata for each. Give explicit times, or count for N evenly spaced frames between start and end (default: the whole sequence). At most 12 frames. Frames are JPEG downscaled to max_width (default 640 px; needs ffmpeg). Use it to review a cut or compare moments; use capture_frame for one frame.

export_frameA

Write one sequence frame to an image file at the sequence's frame size: png, jpeg, tiff, bmp or targa. Waits until the file is complete. Returns {path, time, timecode, frame, width, height, size_bytes}. Use capture_frame instead when you want to see the frame.

export_frames_at_markersA

Write one image per sequence marker (at the marker's start) into a folder. Files are named .. At most 30 markers per call (use first_index to continue). Optional name_filter keeps markers whose name contains the text. Returns the files written with each marker's name, time and timecode.

list_exportersA

List the export formats (exporters) Premiere Pro offers: name, class_id, file_type, file_extension and preset count; with include_presets, each exporter's built-in preset names and ids. Use find_export_presets to get preset FILE paths for export_sequence.

find_export_presetsA

Search the .epr export preset files on this machine: Premiere Pro's and Media Encoder's system presets and the user's custom Media Encoder presets. Returns name, path (pass it as preset_path), exporter, extension, file_type_code, folder, does_video/does_audio and source (user | premiere_system | premiere_settings | media_encoder_system). Media Encoder copies of presets Premiere already ships are listed once.

get_export_file_extensionA

Return the file extension (without dot, e.g. "mp4", "mov", "wav") that an export preset produces for a sequence.

get_last_export_folderA

Return the folder Premiere Pro last exported media to (as remembered by its Export settings), or null if there is none yet.

export_sequenceA

Encode a sequence with an export preset inside Premiere Pro (no Media Encoder, no dialog) and wait until the file is complete. Pick the preset by preset_path, or by preset_name (+ exporter); default "Match Source - High bitrate" H.264. Range: entire, in_to_out, work_area, or start/end seconds (sets In/Out temporarily and restores them). Returns output_path, size_bytes and, when ffprobe is available, duration plus video/audio stream info. Premiere is busy while it encodes.

export_audio_onlyA

Mix down a sequence's audio to a WAV (48 kHz 16-bit) or MP3 (320 kbps) file inside Premiere Pro and wait for it. Same ranges as export_sequence. Returns output_path, size_bytes and, with ffprobe, duration and audio stream info.

queue_sequence_in_media_encoderA

Send a sequence to the Adobe Media Encoder queue with an export preset (Media Encoder is launched if needed) and return its job_id at once; Premiere stays free while Media Encoder encodes. start_immediately starts the queue; otherwise call start_media_encoder_batch. Pass wait=true to block until the file is written. Use export_sequence instead to encode inside Premiere and get the file directly.

export_project_itemA

Encode a source clip from the Project panel with an export preset through Adobe Media Encoder (queued and started at once). Returns job_id; with wait=true (default) waits for the file and returns its size and, with ffprobe, duration and streams. range "in_to_out" uses the clip's source In/Out marks.

encode_fileA

Transcode a media file on disk (it does not need to be in the project) with an export preset through Adobe Media Encoder. Queues the job and starts the queue; with wait=true (default) waits for the output and returns its size and, with ffprobe, duration and streams.

start_media_encoder_batchA

Start encoding the jobs waiting in the Adobe Media Encoder queue (e.g. after queue_sequence_in_media_encoder without start_immediately). Returns at once; poll the output files to know when they are done.

launch_media_encoderA

Start Adobe Media Encoder (no-op if it is already running) so later queue calls are fast. Returns launched=true when Premiere accepted the request.

consolidate_projectA

Run Premiere's Project Manager in Collect Files and Copy mode on the open project: writes a copy of the project plus copies of the media it uses into destination_folder/Copied_/. No dialog. Returns project_path (the copied .prproj), the list of files written with sizes, and any errors Project Manager reported. Can take long for big projects.

get_item_media_infoA

Describe one project item's media: kind, media file path, frame rate (interpreted and from the file), media duration and start time in seconds, video/audio in and out points, video and audio format text, colour label, and flags (is_sequence, is_multicam, is_merged, is_adjustment_layer, is_offline, has_proxy, can_proxy, can_relink). Use it before changing interpretation, in/out, proxy or offline state. For the Project-panel tree use list_project_items.

get_footage_interpretationA

Read how Premiere interprets a clip's media (Modify > Interpret Footage): frame_rate in fps, pixel_aspect_ratio, field_type, alpha_usage, ignore_alpha, invert_alpha, remove_pulldown, input_lut_id and color_space_override (null when the file's own colour space is used). Enum values are returned as names plus their numeric codes.

set_footage_interpretationA

Change how Premiere interprets a clip's media. Only the arguments you pass are changed. Changing frame_rate changes the clip's duration (a 6 s 30 fps clip read at 24 fps lasts 7.5 s). Premiere snaps pixel_aspect_ratio to the nearest ratio it supports and keeps ignore_alpha on for media without an alpha channel, so read the returned interpretation: it is the state after the change. Returns {changed, requested, interpretation}.

set_item_frame_rate_overrideA

Make Premiere read a clip at a different frame rate (same as Interpret Footage > Assume this frame rate). The clip's duration changes in proportion. To undo, call it again with the file's own rate (source_fps from get_item_media_info). Returns the frame rate and duration before and after.

set_item_pixel_aspect_ratioA

Override a clip's pixel aspect ratio as a fraction numerator/denominator (1/1 = square pixels, 4/3 = anamorphic HD 1.333, 10/11 = NTSC DV 0.9091). Returns the pixel aspect ratio before and after as a decimal.

get_item_in_outA

Read the source in and out points of a project item (the range used when the clip is inserted into a sequence), in seconds from the media start, separately for video and audio, with the marked duration of each.

set_item_in_outA

Set the source in point and/or out point of a project item, in seconds from the media start. Pass at least one of in_point and out_point. media_type "all" (default) sets video and audio together. This marks the source range for later edits; it does not trim clips already on a timeline. Returns the resulting video and audio in/out points.

clear_item_in_outA

Remove the source in point and/or out point of a project item so the whole media is used again. By default clears both, for video and audio. Returns the resulting in/out points.

get_item_color_labelA

Read the colour label of a project item: label index 0-15 and the label's name.

set_item_color_labelA

Set the colour label of one project item (clip, bin or sequence item) by index 0-15. Use list_color_labels to see which index is which colour, and set_items_color_label to label many items in one call. Returns the label before and after.

set_items_color_labelA

Set the same colour label on several project items in one call. Items that cannot be found are reported in failed and do not stop the others. Returns {label, label_name, changed: [...], failed: [...]}.

list_color_labelsA

List the 16 colour labels: index 0-15 and name. Names come from Premiere's default label set (Violet, Iris, Caribbean, ...); when the user renamed labels in Preferences > Labels the current name is returned as well.

get_item_start_timeB

Read the media start time (the timecode of the clip's first frame) of a project item, in seconds and ticks.

set_item_start_timeA

Set the media start time (starting timecode) of a project item, in seconds. 3600 makes the clip start at 01:00:00:00. This changes the source timecode only; clips on timelines do not move. Returns the start time before and after.

set_item_scale_to_frame_sizeA

Turn on Scale to Frame Size for a project item: every instance placed on a timeline afterwards is scaled to fit the sequence frame. Clips already on a timeline are not changed, and the scripting API offers no way to turn it off again for the project item.

get_proxy_infoA

Report whether a project item can take a proxy, whether one is attached, the proxy file path, the full-resolution media path, and whether proxy playback is enabled in Premiere.

attach_proxyA

Attach an existing media file as the proxy of a project item. The proxy should match the original's frame rate, duration and audio channel layout. The file is checked first: it must exist, have a video or audio extension (mp4, mov, mxf, avi, wav ...) and start with the matching file signature (FILE_NOT_FOUND or BAD_ARGS otherwise). Fails with FAILED when Premiere rejects the file. Returns the proxy state after the change.

detach_proxyA

Remove the proxy attachment from a project item. The proxy file itself is not deleted. Fails with FAILED when the item has no proxy.

set_item_offlineA

Unlink a project item from its media file (Make Offline; the media file stays on disk). Clips on timelines show Media Offline until the item is relinked. This server has no relink tool (Premiere answers a failed relink with a dialog that blocks scripting): relink in Premiere with right-click > Link Media. Returns the item's offline state.

get_item_metadataA

Read the Project-panel metadata of one item as name -> value pairs (Name, Frame Rate, Media Duration, Video Info, Audio Info, Tape Name, Description, Log Note, Scene, Shot, Good ...). fields is keyed by column name, field_ids maps each name to the column id that set_item_metadata_field accepts. Time columns are raw values as Premiere stores them (ticks; 254016000000 per second). Empty values are left out unless include_empty is true.

set_item_metadata_fieldA

Set one Project-panel metadata field of an item. field is a column name ("Description", "Scene", "Tape Name", "Log Note", "Shot", "Comment") or a column id ("Column.PropertyText.Description"). Read-only columns (durations, video info ...) are ignored by Premiere: the tool fails with FAILED when the value does not read back. For the usual logging fields set_item_logging_fields is shorter. Needs Adobe's XMP script library (UNSUPPORTED if missing).

set_item_logging_fieldsA

Set the common logging fields of a project item in one call: description, scene, shot, log_note, tape_name. Only the fields you pass are changed; an empty string clears a field. Returns the values read back. Needs Adobe's XMP script library (UNSUPPORTED if missing).

get_item_xmpA

Return the raw XMP packet (XML text) of a project item's media, with its total length. Long packets are cut at max_length characters (truncated=true). To read one value use get_item_xmp_property instead.

set_item_xmpA

Replace the whole XMP packet of a project item with the XML you pass (start from get_item_xmp with a large max_length). The packet is parsed first and rejected with BAD_ARGS when it is not an XMP packet. Premiere writes XMP back into the media file on disk for formats that support it. To change one value use set_item_xmp_property.

get_item_xmp_propertyA

Read one simple XMP property of a project item's media by namespace URI and property name, e.g. namespace http://ns.adobe.com/xmp/1.0/DynamicMedia/ name scene. Returns {exists, value}. Struct and array properties can be addressed with an XMP path as the name (e.g. duration/xmpDM:value).

set_item_xmp_propertyA

Set one simple (text) XMP property of a project item's media by namespace URI and property name, leaving the rest of the XMP untouched. For a namespace that is not a standard one, pass prefix so it can be registered. Premiere writes XMP back into the media file on disk for formats that support it, so this modifies the original media file. Returns the value read back.

get_item_color_spaceA

Report the colour management of a project item: whether the media is colour managed, the effective colour space, the original (file) colour space, the override colour space if one is set, embedded and input LUT ids, and (with include_override_list) the names of every colour space that can be used as override.

set_item_color_space_overrideA

Override the colour space Premiere assumes for a project item's media (Interpret Footage > Color Space Override), by name, e.g. "Rec. 709", "sRGB", "Rec. 2100 HLG". Names come from get_item_color_space (override_color_spaces). To undo, set it to the name of original_color_space. Returns the colour management state after the change plus color_space_before.

set_item_input_lutA

Apply a LUT file (.cube, .look ...) as the input LUT of a project item (Interpret Footage > Input LUT). Returns the input LUT id before and after. Fails with FAILED when Premiere does not accept the file. Remove it again with clear_item_input_lut.

clear_item_input_lutA

Remove the input LUT of a project item (set with set_item_input_lut or in Interpret Footage). Returns had_input_lut and the LUT id that was removed.

add_item_markerA

Add a marker to a project item (a clip marker stored on the source clip, visible in the Source Monitor and on every timeline instance). time is in seconds from the media start. For markers on a sequence's timeline use add_marker. Returns the new marker with its marker_id.

list_item_markersA

List the markers stored on a project item (clip markers), in time order: marker_id, name, comment, start, end and duration in seconds, type and colour index.

update_item_markerA

Change a marker on a project item, addressed by marker_id (from list_item_markers). Only the arguments you pass are changed: name, comment, time (seconds; the marker keeps its duration), duration (seconds), colour and type. Returns the marker after the change.

delete_item_markerA

Delete one marker from a project item, addressed by marker_id (from list_item_markers). Returns the number of markers left.

clear_item_markersA

Delete every marker stored on a project item. Returns how many were deleted. Sequence markers are not touched.

find_mogrt_filesA

Search folders for .mogrt files (Motion Graphics Templates). By default searches Premiere Pro's bundled templates folder (…/Adobe Premiere Pro /Essential Graphics) and the user's Essential Graphics folders (%APPDATA%/Adobe/Common/Motion Graphics Templates and …/Essential Graphics; ~/Library/Application Support/Adobe/Common/... on macOS). Reads the disk directly; Premiere is not needed and nothing is opened in it. Returns folders_searched (with exists), total and files: file_path, name (file name without extension), folder, bytes; with details=true also the template's title, author_app ("aefx" = After Effects template whose text and fields can be set by script; "ppro" = Premiere-made, not scriptable), duration and controls (as inspect_mogrt_file). Pass a result's file_path to import_mogrt or add_text_title.

inspect_mogrt_fileA

Read a .mogrt file's definition without placing it: template title, author_app ("aefx" = made in After Effects, "ppro" = made in Premiere Pro), duration (seconds), frame_rate, width, height, fonts, and controls (each editable field with name, type text/checkbox/slider/color/point/group and its default value). Reads the file directly; Premiere is not needed. Only After Effects templates can be edited by script after placing (set_mogrt_text, set_mogrt_parameter); Premiere-made ones keep their default text. Use list_mogrt_parameters for a template already on the timeline.

import_mogrtA

Place a .mogrt file on a sequence's timeline at a time, on a video track (its audio, if any, goes to audio_track_index). Missing video tracks are added. Templates take a few seconds to load. Optionally sets the clip's duration. Returns the new clip (clip_id, track_index, start, end, duration ...), kind ("after_effects" = editable fields, "premiere" = made in Premiere Pro, fields not scriptable), editable, texts and parameters (index, name, type, value). Use add_text_title to place a title and set its text in one call; set_mogrt_text / set_mogrt_parameter to edit an After Effects template afterwards.

list_mogrt_parametersA

List the fields of a Motion Graphics Template clip (what the Essential Graphics panel shows): index, name, type (text, number, boolean, color, point, group), value (text as plain text, colours as "#rrggbb" plus rgb), and font / font_size for text. For a graphic made in Premiere Pro (kind "premiere", e.g. Basic Title) Premiere exposes no fields: parameters is empty, editable=false and text_layers lists its text layer names. Fails with BAD_ARGS when the clip is not a template (check with is_mogrt_clip). Use the name or index with set_mogrt_parameter or set_mogrt_text.

set_mogrt_parameterA

Set one field of an After Effects Motion Graphics Template clip by name or index (see list_mogrt_parameters). value: a number (sliders), true/false (checkboxes), [r, g, b] 0-255 or "#rrggbb" (colours), [x, y] (points) or a string. A value of the wrong form fails with BAD_ARGS. For a text field a plain string changes only the text and keeps font and style (as set_mogrt_text); raw=true writes the string as the field's whole JSON document. Returns before and after, read back from Premiere. Graphics made in Premiere Pro fail with UNSUPPORTED (their fields are not scriptable).

set_mogrt_textA

Change the text of an After Effects Motion Graphics Template clip, keeping its font, size and style: the field's JSON document is read, only its textEditValue is replaced, and it is written back. By default the first text field changes; pass param_name or param_index for another (e.g. "Subtitle"). Use "\n" for a line break. Returns index, name, previous_text and text (read back). Graphics made in Premiere Pro (e.g. the bundled Basic Title) fail with UNSUPPORTED: Premiere does not expose their text to scripting.

add_text_titleA

Put a text title on the timeline in one call: places a title template, sets its text (and subtitle), its duration and optionally its position. Premiere Pro's scripting API cannot create native text layers (Graphics > New Layer > Text), and Premiere-made templates such as Basic Title do not expose their text, so the title is an After Effects template: by default Premiere's bundled "[AE] Sports Package/Sports Text Background.mogrt" (Title + Subtitle). Any After Effects template with a text field works as template_path (see find_mogrt_files with details=true). Returns the clip, text and subtitle (read back), text_field, position and template_path. Edit it later with set_mogrt_text.

is_mogrt_clipA

Tell whether a timeline clip is a Motion Graphics Template or a graphic made in Premiere Pro. Returns is_mogrt, kind ("after_effects", "premiere" or null), editable, template (clip name), text (its first text) and texts. For Premiere-made graphics the texts are the text layer names (source "layer_name"), which equal the text unless a layer was renamed.

list_mogrt_clipsA

List every Motion Graphics Template and Premiere graphic clip on the video tracks of a sequence, in track then time order: the clip (clip_id, track_index, start, end ...), kind, editable, template name, text (first text) and texts (every text field). Use it to find titles to edit with set_mogrt_text, or to read the on-screen text of an edit. Captions are not graphics clips: use list_caption_tracks for them.

replace_mogrt_textA

Find and replace text in the text fields of every After Effects template clip of a sequence (or one video track), keeping fonts and styles. Plain text matching, not a pattern. Graphics made in Premiere Pro are skipped and counted. Returns replaced (fields changed), clips_scanned, premiere_graphics_skipped and changes: clip_id, index, name, before, after (read back). dry_run=true only reports what would change.

create_caption_trackA

Add a caption track to a sequence from a caption project item already in the project (an imported .srt, .scc, .mcc, .xml or .stl file), with the file's 0:00 at a time on the timeline. The track count is checked before and after, which exports the sequence to a temporary project file twice, so the call takes a few seconds. The result is read back: returns the caption item, start, format, caption_tracks (count after) and track (the new track's captions: start, end in sequence seconds, text). Fails with BAD_ARGS when the item is not a caption file. Use import_captions_file to import a file and create the track in one call.

import_captions_fileA

Import a caption file (.srt, .scc, .mcc, .xml, .stl) into the project (root or a bin) and create a caption track from it on a sequence, in one call. Use create_caption_track when the caption file is already a project item. Returns file_path, item (the new caption project item), start, format, caption_tracks and track (the new track's captions read back, as create_caption_track). Use write_srt_file or srt_from_markers first to make an .srt.

list_caption_tracksA

Read the caption tracks of a sequence: for each track (0-based, top first) its captions with start and end (seconds of sequence time) and text. Premiere's scripting API has no caption access, so the sequence is exported to a temporary project file (Sequence.exportAsProject), parsed and the file deleted; nothing in the open project changes. text is null for a caption whose stored text could not be decoded. Use parse_srt_file to read a caption file instead.

write_srt_fileA

Write an .srt subtitle file from a list of {start, end, text} segments (seconds). Segments must be in time order with end > start and must not overlap (allow_overlap=true permits overlaps). Nothing is written when a segment is invalid (BAD_ARGS). Writes the file directly; Premiere is not needed. Returns file_path, count, bytes, duration (end of the last caption) and readability warnings (as check_caption_readability). Fails with FILE_EXISTS if the file exists unless overwrite is true. Pass the file to import_captions_file to put it on a sequence.

parse_srt_fileA

Read an .srt (or simple .vtt) caption file and return its captions as {start, end, text} segments in seconds, plus count, duration, skipped blocks with reasons and problems (ordering, overlaps, empty text). Reads the file directly; Premiere is not needed. Use list_caption_tracks for captions already on a sequence.

shift_srt_fileA

Add an offset in seconds to every caption of an .srt file (negative = earlier) and write the result. Captions that would end before 0 are dropped and ones that would start before 0 start at 0, unless strict=true makes that an error. Writes to output_path (default: the same file, which needs overwrite=true). Works on the file directly; Premiere is not needed. To shift captions already on a sequence, re-import the shifted file. Returns file_path, count, dropped, clamped, first_start and last_end.

check_caption_readabilityA

Check captions against common subtitle rules: reading speed (characters per second), line length, number of lines, minimum and maximum time on screen, gaps and overlaps between captions. Give either segments or the file_path of an .srt file. Returns options used, total, with_warnings, counts per issue, max_cps_found and captions: index, start, end, duration, chars, cps, lines, longest_line, gap_before and warnings ({issue, message}). only_problems=true lists only captions with warnings. Works without Premiere.

srt_from_markersA

Turn a sequence's markers into an .srt caption file: each marker becomes a caption at its time, with the marker's name (or comment) as text. A marker with a duration lasts that long; a point marker lasts until the next marker, at most default_duration seconds. Fails with BAD_ARGS when no marker has text. Returns file_path, count, skipped markers (no text, no room) and the segments. Fails with FILE_EXISTS if the file exists unless overwrite is true. Follow with import_captions_file to put the captions on the sequence.

list_project_itemsA

List the items in a Project panel bin as a flat list: its direct children (default: the project root), or the whole subtree with recursive=true. Each entry has item_id, name, kind (bin / clip / sequence / file), path, depth, and media_path + offline for non-bins; search bins are marked smart_bin=true and are not entered. Use get_bin_tree for a nested view, find_project_items to filter by name or media path.

get_project_itemA

Describe one project item: id, name, kind, path, depth, parent bin, media path, file extension, media category (video / audio / image / sequence / generated / other), offline state, whether it is a subclip (with its start/end in seconds), a sequence (with sequence_id), multicam, merged clip or adjustment layer, and usage_count (timeline clips that use it). For a bin it returns the direct children instead (for a search bin: the matching items, with the paths where they really live). For interpretation, proxies, metadata and colour labels use the footage tools (e.g. get_item_media_info).

find_project_itemsA

Search the Project panel by name, kind, media path or offline state. Pass at least one filter (BAD_ARGS otherwise); all given filters must match. Searches the whole project, including sub-bins, unless a bin is given. Returns total, truncated and entries shaped like list_project_items. Use find_items_by_media_path for one exact file path, list_offline_items for all offline media.

get_bin_treeA

Return the Project panel as a nested tree starting at a bin (default: the project root). Every bin node has item_id, name, path, the counts bins and items, and a contents array holding its sub-bins and items; the result also has total_bins and total_items. Set include_items=false for a bins-only outline. Bins deeper than max_depth are returned without contents and marked truncated=true. Search bins are leaves marked smart_bin=true. Use list_project_items for a flat list.

get_item_pathA

Return where a project item sits in the Project panel: its path such as "Footage/Day 1/clip.mp4", depth (0 = in the root), in_root, the parent bin and the chain of ancestor bins from the root down. Use get_project_item for the item's other details.

count_project_itemsA

Count the items of the whole project or of one bin including its sub-bins: total, by kind (bin, clip, sequence, file), by media category (video, audio, image, generated, other), by file extension, plus offline, subclip and search-bin counts. Use list_project_items or find_project_items for the items themselves.

create_binA

Create a bin in the Project panel, or a nested chain of bins from a path. name may be a path such as "Footage/Day 1/Cam A": every missing level is created and the deepest bin is returned. The bin_* arguments choose the parent (default: the project root; a search bin is refused). Levels that already exist are reused, so the call is safe to repeat; set reuse_existing=false to force a new bin with a duplicate name at the last level. Returns the bin, created (whether anything new was made) and created_paths. Use create_smart_bin for a search bin.

create_smart_binA

Create a search bin (smart bin) at the project root: a bin that always shows every project item matching a search query, like typing the query into the Project panel's search box. It cannot be placed in another bin and cannot hold items itself. Returns the new bin with its query and the number of current matches. Use create_bin for a normal bin.

rename_project_itemA

Rename a bin, clip, subclip or sequence in the Project panel. Renaming a sequence's item renames the sequence (rename_sequence does the same by sequence_id). The media file on disk is not touched. Returns the item with old_name and renamed (false when the name was already the same).

move_project_itemsA

Move one or more project items (clips, sequences, bins) into a bin. The bin_* arguments choose the target (default: the project root; a search bin is refused). Nothing moves if any id is unknown (NOT_FOUND) or a bin would go into itself or one of its own sub-bins (BAD_ARGS). Items already in the target are left alone. Returns each item's old and new path.

delete_project_itemA

Delete one item from the project: a clip, subclip, generated item, sequence or bin. The media file on disk is never deleted. Refuses (BAD_ARGS) a bin that still has contents unless delete_contents=true, and an item used on a timeline (for a bin: anything inside it) unless allow_used=true, in which case those timeline clips are removed too. Deleting a search bin removes only the search bin, never the items it shows. Returns the deleted item with deleted=true and usage_count. Use delete_project_items for several at once.

delete_project_itemsA

Delete several project items in one call (clips, subclips, generated items, sequences, bins). Media files on disk are never deleted. Everything is checked first: nothing is deleted if any item id is unknown (NOT_FOUND), any bin still has contents (unless delete_contents=true) or any item is used on a timeline (unless allow_used=true). Returns the number deleted and each item with deleted and usage_count. Use delete_project_item for one item by name or path.

delete_empty_binsA

Delete every empty bin below a bin (default: the whole project). A bin that only contains empty bins counts as empty; the start bin itself and search bins are never removed. Use dry_run=true to see which bins would go. Returns deleted (count) and empty_bins (item_id, name, path of each).

select_project_itemsA

Set the Project panel selection to exactly the given items, replacing the current selection. Pass an empty item_ids array to clear it. Needs an open Project panel (FAILED otherwise); unknown ids fail with NOT_FOUND. Returns requested, selected and the selection read back from Premiere. Use select_clips for clips on a timeline.

get_selected_project_itemsA

Return the items currently selected in the Project panel: selected (count) and items shaped like list_project_items entries. Empty when nothing is selected. Use get_selected_clips for the timeline selection.

find_items_by_media_pathA

Find the project items whose media is one exact file on disk (whole path, case-insensitive, slashes in either direction). Subclips of the file are left out unless include_subclips=true. Returns total and the items (with is_subclip when subclips are included). Use find_project_items with media_path_contains for partial path matches.

create_subclipA

Create a subclip: a new project item that uses only the part of a clip between start and end (seconds from the beginning of the source media). The item_* arguments name the source clip; a bin or a sequence fails with BAD_ARGS. The subclip is put in the bin given by bin_*, or next to its source when no bin is given; the media file is not copied. An end beyond the media fails with BAD_ARGS. Returns the new item with its start, end and duration in seconds and the source item id.

get_item_usageA

List every timeline clip, in every sequence, that uses a project item, grouped by sequence; each clip has clip_id, track, start/end in seconds and source in/out. For a sequence item this lists where it is nested in other sequences. usage_count is 0 for an unused item. Use list_unused_items to find all unused items at once.

list_unused_itemsA

List the project items (media, subclips, generated items) that no sequence uses. Sequences are left out unless include_sequences=true, which adds sequences that are not nested in any other sequence. Searches the whole project, including sub-bins, unless a bin is given. Returns total, truncated and the items. Use get_item_usage for where one item is used.

list_offline_itemsA

List the project items whose media is offline (file missing or unlinked), with the media path Premiere last knew. Searches the whole project, including sub-bins, unless a bin is given. Returns total, truncated and the items.

find_duplicate_itemsA

Find media files that were imported more than once: groups of project items in the whole project that share the same media path (case-insensitive). Subclips are not counted as duplicates of their source unless include_subclips=true. Returns one group per duplicated file and redundant_items. Use consolidate_duplicates to merge them.

organize_items_by_typeA

Move the loose items of a bin (default: the project root) into type bins inside it: Video, Audio, Images and Sequences. Media type is decided by file extension; existing bins with those names are reused, missing ones are created. Items inside sub-bins are not touched; generated items and unknown file types stay where they are and are reported as skipped. dry_run=true returns the plan without changing anything. Returns the moves (from_path, to_path), counts per type, created_bins and skipped.

create_bars_and_toneA

Create a Bars and Tone project item (colour bars with a tone), ready to be placed on a timeline. Premiere decides the format: in Premiere Pro 26.5 the item is always 1920x1080 at 29.97 fps, so there are no size arguments. The bin_* arguments choose where it goes (default: the project root). Returns the new project item with the width, height, pixel aspect ratio, fps, duration (seconds) and audio format Premiere reports.

add_markerA

Add one marker to a sequence's timeline, at a time in seconds or at the playhead when time is omitted. Optionally set its name, comment, duration (a span marker), colour and type. Returns the new marker: marker_id, index, name, comment, time, end, duration, timecode, type, color_index, color. Use add_markers for several markers in one call, and add_item_marker for a marker on a source clip (project item).

add_markersA

Add up to 2000 markers to a sequence in one call. Every entry is validated before anything is created, so a bad entry adds nothing. Returns added, total (markers now in the sequence) and the new markers in time order with their ids. Use import_markers to create markers from a CSV, JSON or chapter-list file, add_markers_at_interval or add_markers_at_clip_starts for generated positions.

add_markers_at_clip_startsA

Add one sequence marker at the start of every clip of one track, named name_prefix + the clip name. Useful to turn an edit into chapters or a shot list. At most 2000 markers per call. Returns clips (on the track), added, skipped_existing and the new markers.

add_markers_at_intervalA

Add a marker every N seconds over a time range of a sequence (default: from 0 to the end of the sequence; a marker lands on both ends when they fall on the grid). At most 2000 markers per call. Markers are named name_prefix + a running number ("Marker 1", "Marker 2" ...). Returns added, skipped_existing and the new markers.

list_markersA

List the markers of a sequence in time order, optionally filtered by type, colour, time range and text. Returns total (all markers in the sequence), matched, fps, sequence_duration, playhead and markers: marker_id, index, name, comment, time, end, duration (seconds), timecode, type, color_index, color, plus url and frame_target for web_link markers. Use find_markers to search text across all sequences and count_markers for totals only.

get_markerA

Return one marker of a sequence by marker_id (or by marker_index, its 0-based position in time order): name, comment, time, end, duration (seconds), timecode, type, color_index, color, and url / frame_target of a web_link marker. Fails with NOT_FOUND for an unknown id or index.

find_markersA

Search marker names and comments for a text, in one sequence or in every sequence of the project (all_sequences=true). Returns matched and the matching markers, each with its sequence_id, sequence_name and matched_in (name and/or comment). Use list_markers to filter one sequence by type, colour or time range.

count_markersA

Count the markers of a sequence without listing them, optionally filtered by type, colour, time range and text. Returns total, matched, by_type, by_color, with_duration (span markers), first_time and last_time in seconds.

get_nearest_markerA

Find the marker closest to a time (default: the playhead) without moving the playhead. direction limits the search to markers at or before / at or after that time. Returns found, marker, offset (marker time minus the time, in seconds) and inside_marker (the time lies within the marker's span). Use go_to_next_marker / go_to_previous_marker to move the playhead instead.

list_marker_colorsA

Return the eight sequence-marker colours (color_index 0-7 with their names), the marker types and the colour Premiere Pro gives each type by default. Every marker tool accepts the index or the name. Project item colour labels are different: see list_color_labels.

update_markerA

Change any of a marker's name, comment, time, duration, colour and type in one call; fields that are not given stay as they are. Changing time moves the marker and keeps its duration. Changing the type also sets the colour to that type's default unless color or keep_color is given. Returns the updated marker and changed (the fields that were written).

set_marker_colorA

Set the colour of one marker (marker_id or marker_index) or of several (marker_ids). Returns changed and the markers with their new colour. See list_marker_colors for the palette.

set_marker_typeA

Change a marker's type to "comment", "chapter", "segmentation" or "web_link" (a web link needs url, and optionally frame_target). When the type changes, the colour is set to the new type's default (comment green, chapter red, segmentation purple, web link orange) unless keep_color is true. Returns the marker and previous_type.

shift_markersA

Move all markers of a sequence, or only those chosen by marker_ids and/or the filters, by an offset in seconds (negative = earlier). Durations are kept. If a marker would land before 0 the call fails and moves nothing, unless clamp_to_zero is true. Returns shifted, clamped_to_zero and the moved markers at their new times. Use it after inserting or removing material at the head of a sequence.

copy_markers_to_sequenceA

Copy the markers of one sequence (all, or those matching marker_ids / the filters) to another sequence, keeping name, comment, duration, type, colour and link, with an optional time offset. The source is not changed. Markers that would land before 0 are skipped and counted. Target and source may be the same sequence only with a non-zero time_offset (duplicates markers). Returns copied, skipped_before_start, cleared_in_target and the new markers of the target.

delete_markerA

Delete one marker of a sequence by marker_id (or marker_index). Returns deleted, remaining and the marker as it was, so it can be recreated with add_marker.

delete_markersA

Delete the markers of a sequence chosen by marker_ids and/or by filters (type, colour, time range, text); at least one of them is required. Returns deleted, remaining and deleted_markers (id, name, time). Use delete_all_markers to remove every marker.

delete_all_markersA

Delete every marker of a sequence. Returns deleted, remaining (0) and deleted_markers (id, name, time). Export them first with export_markers if they may be needed again.

go_to_markerA

Move the playhead of a sequence to the start of a marker given by marker_id (or marker_index). Use get_nearest_marker to look a marker up without moving. Returns moved, previous_playhead, playhead (seconds) and the marker.

go_to_next_markerA

Move the playhead to the first marker strictly after its current position (optionally only markers matching the filters). When there is none it returns moved=false and leaves the playhead where it is, unless wrap is true. Returns moved, previous_playhead, playhead and the marker.

go_to_previous_markerA

Move the playhead to the last marker strictly before its current position (optionally only markers matching the filters). When there is none it returns moved=false and leaves the playhead where it is, unless wrap is true. Returns moved, previous_playhead, playhead and the marker.

export_markersA

Write the markers of a sequence (optionally filtered) to a file: "csv" (columns name,time,duration,comment,type,color,url,frame_target,timecode; times in seconds), "json" (the full marker list with the sequence it came from) or "youtube" (a chapter list of "0:00 Title" lines). CSV and JSON files can be read back with import_markers. Returns file_path, format, count and bytes. Fails with FILE_EXISTS if the file exists unless overwrite is true.

import_markersA

Create sequence markers from a file. CSV: a header row with a time column (time, start, in or timecode) and any of name, duration, end/out, comment/description, type, color, url, frame_target; comma, semicolon or tab separated, including Premiere Pro's own marker export. JSON: an array of marker objects or {markers: [...]} as written by export_markers. A .txt chapter list ("0:00 Title" lines) becomes chapter markers. Times are seconds, M:SS, H:MM:SS or HH:MM:SS:FF timecode. At most 2000 markers per file. Returns imported, the new markers, skipped rows with reasons and warnings. dry_run=true only parses the file.

markers_to_youtube_chaptersA

Return the markers of a sequence as a YouTube chapter list: text with one "0:00 Title" line per marker (H:MM:SS for sequences of an hour or more), ready to paste into a video description. Titles come from the marker name, else the first comment line. Filter by type (e.g. "chapter") or colour to use only some markers. Returns text, chapters (time, timestamp, title), intro_added and warnings about YouTube's rules (start at 0:00, at least 3 chapters, 10 s minimum). Use export_markers with format "youtube" to write the list to a file.

get_clip_transformA

Read a video clip's Motion and Opacity settings in friendly units: position (sequence pixels and normalised), scale, scale width/height, uniform-scale flag, rotation (degrees), anchor point (source pixels and normalised), anti-flicker, crop left/top/right/bottom (percent), opacity (percent), blend mode name, and for each whether it is keyframed. Also returns the source frame size, the sequence frame size and the clip's on-screen bounding box in sequence pixels. Pass time to read the animated values at that moment.

set_clip_positionA

Move a video clip by setting its Motion Position: where the clip's anchor point (normally its centre) sits in the sequence frame. Pixels by default (0,0 = top-left, e.g. 960,540 is the centre of a 1920x1080 sequence); pass units="normalized" for 0-1 fractions. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Returns the clip's transform.

set_clip_scaleA

Set a video clip's uniform Motion Scale in percent (100 = source pixels 1:1) and turn Uniform Scale on. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Use fit_clip_to_frame / fill_clip_to_frame to scale to the sequence frame. Returns the clip's transform.

set_clip_scale_xyA

Stretch a video clip with separate horizontal and vertical scale in percent. Turns Uniform Scale off (Premiere's Scale becomes the height and Scale Width the width). A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Returns the clip's transform.

set_clip_rotationA

Rotate a video clip around its anchor point. Degrees, clockwise; values beyond 360 make extra turns. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Returns the clip's transform.

set_clip_anchor_pointA

Set a video clip's anchor point: the point of the clip that Position places and that scale and rotation pivot around. Pixels of the clip's SOURCE frame by default (the centre of a 1920x1080 clip is 960,540); units="normalized" for 0-1 fractions. Changing it moves the picture unless position is changed too; pass keep_in_place=true to compensate the position so the picture stays where it is. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Returns the clip's transform.

set_clip_anti_flickerB

Set a video clip's Motion Anti-flicker Filter (0-1). Softens thin horizontal lines that flicker on interlaced displays. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Returns the clip's transform.

set_clip_transformA

Set several Motion/Opacity values of one video clip in one call: position, scale (uniform) or scale_width + scale_height (non-uniform), rotation, anchor point, anti-flicker, crop, opacity and blend mode. Only the fields you pass change. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Use set_clips_transform for the same change on several clips. Returns the clip's transform.

reset_clip_transformB

Put a video clip's Motion/Opacity parameters back to Premiere's defaults and remove their keyframes: position centre, scale 100 (uniform), rotation 0, anchor centre, anti-flicker 0, crop 0, opacity 100, blend mode normal. Choose which with parts (default all). Returns the clip's transform.

crop_clipA

Crop a video clip with the Motion component's Crop parameters, in percent of the source frame per edge. Edges you omit keep their value. The cropped area becomes transparent (lower tracks show through). A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Returns the clip's transform.

set_clip_opacityA

Set a video clip's Opacity in percent (0 = invisible, 100 = opaque). A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Use fade_in_clip / fade_out_clip for fades. Returns the clip's transform.

set_clip_blend_modeA

Set how a video clip blends with the tracks below it (Opacity > Blend Mode). Names (case-insensitive, spaces or underscores): normal, dissolve, darken, multiply, color burn, linear burn, darker color, lighten, screen, color dodge, linear dodge (add) (alias "add"), lighter color, overlay, soft light, hard light, vivid light, linear light, pin light, hard mix, difference, exclusion, subtract, divide, hue, saturation, color, luminosity. Removes blend-mode keyframes if any. Returns the blend mode now set and Premiere's numeric value for it.

fit_clip_to_frameA

Scale a video clip uniformly so the whole picture fits inside the sequence frame (letterbox/pillarbox, nothing cut off), and centre it (position and anchor to the centres) unless center=false. The scale is computed from the clip's source frame size and the sequence frame size. Returns the scale used and the clip's transform.

fill_clip_to_frameA

Scale a video clip uniformly so it covers the whole sequence frame with no empty borders (edges may be cut off), and centre it unless center=false. Computed from the source and sequence frame sizes. Returns the scale used and the clip's transform.

place_clip_in_cornerA

Make a picture-in-picture: scale a video clip so its width is size percent of the sequence width, and move it into a corner with a margin in pixels. Put the clip on a track above the main picture. Rotation and crop are taken into account. Returns the clip's transform and bounding box.

set_clips_transformA

Apply the same Motion/Opacity values (same fields as set_clip_transform) to several video clips of one sequence. Each clip is processed separately; per-clip errors (unknown id, audio clip) are reported without stopping the others. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Returns one entry per clip.

fade_in_clipA

Fade a video clip in from transparent: opacity keyframes 0% at the clip's first frame and the clip's current opacity (or to) after duration seconds. Existing opacity keyframes inside that range are replaced; others (e.g. a fade-out) are kept. For a dissolve between two clips use the transitions tools. Returns the opacity keyframes.

fade_out_clipA

Fade a video clip out to transparent: opacity keyframes at the clip's current opacity (or from) duration seconds before its end, and 0% at its end. Existing opacity keyframes inside that range are replaced; others (e.g. a fade-in) are kept. Returns the opacity keyframes.

animate_clip_transformA

Animate one Motion/Opacity property of a video clip from a value to a value between two times, with easing. Properties and units: position [x, y] and anchor_point [x, y] (pixels or normalised per units, as in set_clip_position / set_clip_anchor_point), scale (percent), rotation (degrees), opacity (percent). Adds two keyframes; existing keyframes of that property between start and end are replaced, others are kept. Returns the property's keyframes.

ken_burnsA

Add a slow zoom/pan across the whole clip (Ken Burns), typically for stills. The clip is first scaled to fill the frame, then animated: zoom_in / zoom_out change scale by amount percent around the centre; pan_left / pan_right / pan_up / pan_down zoom in by amount and slide across the extra margin so no border ever shows. Replaces the clip's Position and Scale keyframes. Returns the keyframes.

get_transform_keyframesA

List the keyframes of a video clip's Motion and Opacity parameters (position, scale, scale width, rotation, anchor point, anti-flicker, crop, opacity). Each keyframe has its sequence time, its offset from the clip start, and its value in friendly units (position/anchor in pixels and normalised). Parameters without keyframes are left out.

align_clipsA

Move video clips so their on-screen bounding box (after scale, rotation and crop) lines up with an edge or the centre of the sequence frame, with an optional margin. Only position changes. Pass horizontal and/or vertical. Returns each clip's new bounding box.

get_playhead_positionA

Return where the playhead (current-time indicator) of a sequence is: seconds from the sequence start, frame number (0-based, at the sequence frame rate), and the timecode as the timeline ruler shows it (display format plus start timecode), plus the sequence duration in seconds and fps.

set_playhead_positionA

Move the playhead of a sequence to a time in seconds, snapped to the nearest frame. Returns the position read back as seconds, frame and timecode. Use set_playhead_timecode for a timecode string, move_playhead_by_frames for relative steps, go_to_clip to park on a clip.

set_playhead_timecodeA

Move the playhead of a sequence to a timecode written the way the timeline ruler shows it: in the sequence's display format and counted from its start timecode. For example "00:00:04:10" is hours:minutes:seconds:frames. Fails with BAD_ARGS for a string that is not a valid timecode or lies before the sequence start. Makes the sequence active. Returns the position read back as seconds, frame and timecode. Use set_playhead_position for seconds.

move_playhead_by_framesA

Move the playhead of a sequence forward (positive) or backward (negative) by a number of frames, like the Left/Right arrow keys. It stops at the sequence start (not at the end). Returns the new position as seconds, frame and timecode, and frames_moved (the steps actually taken).

go_to_sequence_startA

Move the playhead to the start of a sequence (time 0, like the Home key). Returns the position read back as seconds, frame and timecode.

go_to_sequence_endA

Move the playhead to the end of a sequence, where its last clip ends (like the End key). Returns the position read back as seconds, frame and timecode.

list_edit_pointsA

List every edit point of a sequence: the distinct times where any clip starts or ends (including the start and end of gaps), in time order. Each point has seconds, frame, timecode and video_tracks / audio_tracks: the indices of the tracks with a clip boundary there. Optionally limited to targeted tracks or one track type. Use list_cuts for butt-joined cuts on one track (transition points).

go_to_next_edit_pointA

Move the playhead to the first edit point (clip start or end) more than half a frame after its current position, like the Down arrow key. Returns moved=false and leaves the playhead alone when there is none. Returns the position read back, the previous position (from, seconds) and the edit point.

go_to_previous_edit_pointA

Move the playhead to the last edit point (clip start or end) more than half a frame before its current position, like the Up arrow key. Returns moved=false and leaves the playhead alone when there is none. Returns the position read back, the previous position (from, seconds) and the edit point.

get_clips_at_playheadA

Return the clips under the playhead (or under time) on every track of a sequence, at most one per track, topmost video track first, then audio in track order. A clip covers its start but not its end. Each clip has clip_id, track, start/end, offset (seconds into the clip) and source_time (position in the source media, seconds). get_clip_at_time does the same for a given time with a track filter.

go_to_clipA

Move the playhead of a sequence to a timeline clip: its start, its end (the first frame after the clip), its last frame or its middle (snapped to a frame). Returns the position read back, the edge used and the clip. Use go_to_next_edit_point to step through cuts instead.

play_timelineA

Start playback of a sequence in the Program Monitor from the playhead (or from from). The sequence is made active first. The call returns at once; playback runs in real time inside Premiere until stop_playback is called or the sequence ends. Returns the starting position and playing=true.

stop_playbackA

Stop timeline playback started by play_timeline (or by the user). The sequence arguments only choose whose playhead position is returned. Returns that position after stopping and playing=false.

open_in_source_monitorA

Open a project item (clip, still, audio file or sequence) in the Source Monitor. A bin fails with BAD_ARGS. Returns the Source Monitor state with the item now loaded. Use open_file_in_source_monitor for a file on disk that is not in the project.

open_file_in_source_monitorA

Open a media file from disk in the Source Monitor without importing it into the project. The file must exist (FILE_NOT_FOUND otherwise). Returns the Source Monitor state: the name and media path of what it shows, with item_id=null and in_project=false. Use open_in_source_monitor for a project item, import_files to add the file to the project.

close_source_monitor_clipA

Close the clip currently shown in the Source Monitor. If other clips are still open there, the next one becomes visible. An empty Source Monitor is not an error (closed=null). Returns what was closed and what is loaded afterwards. Use close_all_source_monitor_clips to empty it.

close_all_source_monitor_clipsA

Close every clip open in the Source Monitor, leaving it empty. Returns was_loaded (whether anything was open) and loaded=false when it is empty afterwards.

play_source_monitorA

Play the clip loaded in the Source Monitor at a speed: 1 = normal, 2 = double, 0.5 = half, negative = reverse, 0 = stop. The call returns at once. Fails with NOT_FOUND when the Source Monitor is empty. Returns the Source Monitor state with the position (seconds) at the moment of the call, speed and playing. Use play_timeline for a sequence.

get_source_monitor_stateA

Report what the Source Monitor shows: whether a clip is loaded, its item (item_id, name, media path; item_id is null and in_project false for a file opened straight from disk) and the Source Monitor playhead position in seconds (null when empty).

get_project_overviewA

Describe the active project in one call; start here. Returns the project's name and path, counts of bins, clips, sequences and offline items, every sequence (id, name, duration in seconds, fps, frame size, track counts), the active sequence, and the Project panel tree two levels deep (root items, and the contents of each top-level bin). Use list_project_items or get_bin_tree for deeper bins and get_project_info for project settings.

get_project_infoA

Return the active project's settings and state: name, path, document id, whether it is a cloud project, the .prproj file size and Premiere's size-on-disk figure (bytes), the renderer in use, item / bin / clip / sequence / offline counts, the active sequence id, graphics white luminance (nits), LUT interpolation method, scratch disk locations and background media processing status. Use get_project_overview for the contents of the project.

list_open_projectsA

List every project open in Premiere Pro with its name, path, document id, number of sequences and root items, and is_active. All other tools act on the active project. Premiere's scripting API cannot switch between open projects: to work in another one, close the projects in front of it with close_project.

create_projectA

Create a new, empty Premiere Pro project file and make it the active project. Projects that are already open stay open. The folder must exist (FILE_NOT_FOUND otherwise); fails with BAD_ARGS if a file already exists at that path (use open_project for it). Returns the new project's name and path and the number of open projects.

open_projectA

Open a .prproj file and make it the active project. Conversion, missing-media and warning dialogs are suppressed, so offline media stays offline instead of prompting. Other open projects stay open. If the project is already open and active nothing happens (already_open=true); if it is open behind another project the call fails with UNSUPPORTED, because scripts cannot switch between open projects. Returns the project's name, path, document id and sequence count.

close_projectA

Close an open project without any prompt. With save=true the project is saved first; with save=false unsaved changes are lost. Closes the active project unless project_path names another open one. Returns what was closed and which project is active afterwards (null when none is left).

save_projectA

Save the active project to its current file. Returns the path, the file size in bytes and the file's modification time (ISO 8601, UTC). Use save_project_as to save under a new path, create_project_backup to keep a dated copy.

save_project_asA

Save the active project to a new file and keep working in that new file (like File > Save As): the open project's path changes. To write a copy without switching to it, use create_project_backup. The folder must exist; the current path and the path of another open project are refused. Returns the new and the previous path and the file size in bytes.

create_project_backupA

Save the active project, then copy its .prproj file to "_YYYYMMDD-HHMMSS[_label].prproj" (local time) in a backup folder. The open project keeps its own path; use save_project_as to switch to a new file instead. Do this before risky bulk edits. Media files are not copied. Returns the backup path, the source path and the size in bytes.

import_filesA

Import video, audio and still-image files into the active project, into a bin or the project root, without an import dialog. Every path must exist, be a non-empty file and have an extension on the supported list (mp4, mov, m4v, mxf, avi, mpg, mts, wmv, r3d, wav, mp3, aif, m4a, aac, png, jpg, tif, bmp, gif, tga, exr, dpx and similar); otherwise nothing is imported and the call fails (FILE_NOT_FOUND, or UNSUPPORTED with the list), because Premiere would stop on a modal error dialog. A file with a valid extension but unreadable content still opens that dialog. Returns the created project items (item_id, name, kind, path, media_path), the target bin and any import failures. Use import_image_sequence for a numbered still sequence, import_folder for a whole folder.

import_folderA

Import every media file in a folder on disk into a bin or the project root. The server lists the folder, keeps non-empty, non-hidden files whose extension is in the filter (default: the formats import_files accepts) and imports them in natural name order. Sub-folders are included only with recursive=true; the folder structure is not recreated as bins. An empty result (found=0) is not an error. Returns the number found and imported, the created project items, truncated, and how many files the filter skipped with up to 20 examples.

import_image_sequenceA

Import a numbered still sequence (frame_0001.png, frame_0002.png, ...) as a single video clip. Pass the first frame; Premiere picks up the following numbers in the same folder. Only still-image extensions are accepted (png, jpg, tif, exr, dpx and similar). The clip is named after the first frame. Returns the created project item (item) and the target bin. Use import_files for separate stills.

import_sequences_from_projectA

Copy sequences, with the media items they use, from another .prproj file into the active project. The other project is not opened as a document. Premiere reads the whole other project, so this can take 10-30 s. Imported sequences get new ids here. Fails with NOT_FOUND when no sequence was imported (wrong ids). Returns the sequences and project items that were added.

list_sequences_in_project_fileA

List the sequences inside a .prproj file on disk (ids and names) without opening it in Premiere Pro. Use the ids with import_sequences_from_project. Works while Premiere is closed; it reads the saved file, so unsaved changes of an open project are not included. Returns the path, file size in bytes, count and sequences.

import_fcp_xmlA

Import a Final Cut Pro 7 XML file (.xml with an root, the interchange format Premiere, Resolve and others export) into the active project. Premiere creates the sequences and clips it describes. Other XML files fail with BAD_ARGS; use import_sequences_from_project for a .prproj. Returns the project items and sequences that were added.

export_project_fcp_xmlA

Export the whole active project (bins, clips and sequences) as one Final Cut Pro 7 XML file for exchange with other editing or grading applications. No dialog is shown. Use export_sequence_fcp_xml for a single sequence. Returns the output path, size in bytes and the number of sequences in the project.

consolidate_duplicatesA

Merge project items that point at the same media file with the same interpretation into one item (Edit > Consolidate Duplicates). Timeline clips are re-pointed at the surviving item. Run find_duplicate_items first to see what would merge. Returns the number of project items before and after and how many were removed.

get_insertion_binA

Return the bin that Premiere puts new items into: the bin selected or open in the Project panel, or the project root. Returns item_id, name, path ("" for the root), is_root and the number of children. Tools that take bin_* arguments ignore it.

get_graphics_white_luminanceA

Read the active project's graphics white luminance in nits: the brightness that white in titles, graphics and sRGB stills maps to in HDR sequences. Returns nits and the supported values.

set_graphics_white_luminanceA

Set the active project's graphics white luminance in nits (how bright graphics white is in HDR sequences). Only values Premiere supports are accepted (100, 203 or 300 in current builds; others fail with BAD_ARGS listing them). Returns the new value, the previous value and the supported values.

get_lut_interpolation_methodA

Read how the active project interpolates 3D LUTs: method 0 (trilinear) or 1 (tetrahedral, smoother gradients). Returns method, name and the supported methods.

set_lut_interpolation_methodA

Set how the active project interpolates 3D LUTs: 0 = trilinear, 1 = tetrahedral (smoother gradients). Returns the new method, the previous one and the supported methods.

undoA

Send Edit > Undo to the active project, once or count times. It reverts timeline edits such as razor cuts, trims, moves and deletions, whether made by tools or by hand. Some scripted changes (for example creating a bin or a marker) are not recorded in Premiere's undo history and are not reverted. Premiere accepts the command even when nothing is left to undo, so read the state back afterwards. Returns steps (undo commands Premiere accepted) and requested. Use redo to reapply.

redoA

Send Edit > Redo to the active project, once or count times, restoring edits that undo just reverted. Premiere accepts the command even when nothing is left to redo, so read the state back afterwards. Returns steps (redo commands Premiere accepted) and requested.

list_renderersA

List the video renderers available on this machine (Mercury Playback Engine GPU Acceleration variants and Software Only) and the one the active project uses (current). Use set_renderer to switch.

set_rendererA

Switch the active project's video renderer (Project Settings > General > Renderer), for example between GPU acceleration and Software Only. Fails with NOT_FOUND for an unknown name and BAD_ARGS when a partial name matches several renderers. Returns the renderer now in use, the previous one and the available names.

flush_project_cacheA

Ask Premiere Pro to flush the cached media data it holds in memory for the active project, so frames are read from disk again. Use it after media files were changed on disk by another program. It does not delete preview files (see delete_sequence_previews) or the media cache database. Returns flushed=true.

get_media_processing_statusA

Report whether Premiere Pro is still processing media in the background after an import: indexing, audio conforming, audio peak file generation, the number of active progress items, file counters and any import failures. idle=true means all of that has finished. Use wait_for_media_ready to wait until it is idle.

wait_for_media_readyA

Wait until Premiere Pro has finished indexing, conforming audio and generating peak files (see get_media_processing_status), polling twice a second. Call it after importing media and before analysing or exporting. Returns ready=true once the app has been idle for two polls in a row, or ready=false with the last status when the timeout is reached (not an error), plus waited_seconds and polls.

get_scratch_disk_pathsA

Read the active project's scratch disk locations (Project Settings > Scratch Disks): captured video and audio, video and audio previews, auto-saves, CC Libraries downloads and Motion Graphics template media. A value of "SameAsProject" means the folder of the project file; null means unset. Use set_scratch_disk_path to change one.

set_scratch_disk_pathA

Set one of the active project's scratch disk locations (Project Settings > Scratch Disks) to a folder, or back to the project's own folder. The folder must exist (FILE_NOT_FOUND otherwise). Existing preview or auto-save files are not moved. Returns the location read back and the previous one.

set_transcode_on_ingestA

Turn the active project's Ingest setting on or off (Project Settings > Ingest Settings). When on, media imported through the Media Browser is copied, transcoded or given proxies according to the ingest preset chosen in Premiere; this tool does not change the preset. Returns enabled as Premiere reports it after the change.

audit_sequenceA

One read-only pass that finds problems in a sequence before hand-off: gaps between clips on a track (warning when nothing on another video track covers it, i.e. black in the program; info otherwise and on audio), overlapping clips on one track, flash frames (video clips of at most flash_frame_max_frames frames), disabled clips, clips whose media is offline, clips running past the end of their media, empty tracks, video clips whose source has audio but no audio clip of it plays with them (audio_missing), linked or overlapping audio of the same source that is out of sync (start offset in seconds and frames), and markers with no name. Returns issues sorted by time (track-less issues last), each with type, severity (error/warning/info), time/end in seconds, track (V1/A1 ...), clip_id, message and suggested_fix (the name of the tool that fixes it), plus a summary by type and severity. Use checks to run only some checks. Never changes the project.

check_delivery_specA

Compare a sequence's settings (frame size, fps, pixel aspect ratio, field order, audio sample rate and channel count, duration limits) with a named delivery target or your own spec. Targets: youtube_1080p, youtube_4k, instagram_reel, tiktok, broadcast_hd_25i, broadcast_hd_2997i, cinema_dci_2k (call with list_targets=true to see their values). Returns pass (all fields pass), one entry per checked field with expected, actual and pass, and the spec used. Read-only; fix failures with set_sequence_settings.

get_project_reportA

A structured summary of the whole project: totals, items by kind and media type, bins with item counts, every sequence (duration in seconds, frame size, fps, track and clip counts), offline items, items not used by any sequence, and the total duration of the video/audio media (stills excluded; an item's own in/out counts when set). Optionally writes it as a Markdown (.md) or HTML (.html) file to file_path (format by extension or format). Returns the report (and file_path, bytes when written). Never changes the project.

get_sequence_media_listA

Every clip of a sequence in timeline order as an EDL-like list: event number, track (V1/A1 ...), clip and source names, media path, source in/out and timeline in/out (seconds), duration, speed, disabled and offline flags. Also returns the distinct sources with their use count. Optionally writes the list as CSV (file_path). Read-only.

get_edit_statisticsA

Editing statistics of a sequence, measured on the program picture (the top-most enabled video clip at each moment): shot count, cut count (shot-to-shot edits), gaps (black), average and median shot length, shortest and longest shot (seconds, with clip id), shots per minute, per-track usage (clips, seconds covered, coverage % of the sequence duration) and the most-used sources by screen time. Read-only.

check_project_mediaA

Check, on the server's file system, that the media file of every project item exists: returns per item the media path, whether it exists, its size in bytes and Premiere's offline flag, plus the list of missing files, total bytes and counts. Items without a media file (bins, sequences, synthetic media) are skipped. Read-only; relink with replace_clip_media or Premiere's Link Media.

list_sequencesA

List every sequence in the active project: sequence_id, name, is_active, duration in seconds, fps, frame size, track counts, and the item_id and bin path of its project item. Also returns count and active_sequence_id. Use find_sequences to search by name and get_sequence_structure to read the clips of one sequence.

find_sequencesA

Search the active project's sequences by name. By default the pattern is a case-insensitive substring; set regex=true to use a regular expression, or exact=true to require the whole name to match. Returns count and the same fields as list_sequences for each match (an empty list when nothing matches).

get_active_sequenceA

Return the sequence that is currently active (frontmost in the Timeline panel): id, name, duration in seconds, fps, frame size, track counts and player_position (playhead, seconds from the sequence start). Returns has_active_sequence=false and sequence=null when no sequence is open. Most tools act on the active sequence when no sequence_id is passed.

set_active_sequenceA

Open a sequence in the Timeline panel and make it the active sequence, so tools called without sequence_id act on it. Returns the sequence description with is_active=true. Use get_active_sequence to read which one is active.

close_sequenceA

Close a sequence's tab in the Timeline panel. The sequence stays in the project (use delete_sequence to remove it) and can be reopened with set_active_sequence. Fails with FAILED if Premiere keeps the tab open. Returns closed=true and the id and name of the sequence that is active afterwards (null when no sequence is left open).

create_sequence_from_presetA

Create a new empty sequence from a sequence preset file (.sqpreset) without opening a dialog, and make it active. Get preset paths from list_sequence_presets. Use create_sequence instead when you know the frame size and frame rate you want, and create_sequence_from_clips to match the settings of existing footage. The bin_* arguments choose where its project item goes (default: the project root). Returns the new sequence.

create_sequence_from_clipsA

Create a new sequence whose settings match the first given project item, with all the items placed back to back from time 0 in the order given (like dragging clips onto the New Item button). Bins are refused. Unlike the other create tools it does not make the new sequence active. The bin_* arguments choose where its project item goes (default: the project root). Returns the new sequence and its clip_count. Use create_sequence for an empty sequence with explicit settings.

create_sequenceA

Create a new empty sequence with a given frame size and frame rate, with no dialog, and make it active. It is created from a base preset, then the settings are applied and read back: applied and not_applied list what Premiere accepted. Unless passed, pixel aspect ratio is 1:1, field type progressive, the preview size equals the frame size and the video display format matches the frame rate. Returns the new sequence, the base preset path and its full settings. Use create_sequence_from_preset to keep a preset's settings unchanged.

duplicate_sequenceA

Make an independent copy of a sequence, including all its clips, effects and markers. The copy is not made active. Premiere names it " Copy" unless new_name is given. Returns the new sequence (new_sequence) and the id and name of the source.

delete_sequenceA

Delete a sequence from the project (its clips on the timeline go with it; source media stays in the project). Pass sequence_id or sequence_name: unlike other tools it never falls back to the active sequence (BAD_ARGS when both are missing). Returns the deleted sequence's id and name and the number of sequences left. Use close_sequence to only close its tab.

rename_sequenceA

Rename a sequence; the name of its project item changes with it. Returns the sequence with its new name and previous_name. rename_project_item does the same by item id.

get_sequence_settingsA

Read a sequence's full settings: frame size (pixels), fps, pixel aspect ratio, field type, audio sample rate (Hz), channel type and count, preview size / codec / file format, video and audio display formats (name and numeric id), max bit depth, max render quality, linear-colour compositing, working colour space (plus the list of available ones), VR properties, editing mode id, and the start time (zero point) in seconds and as timecode. Use set_sequence_settings to change them.

set_sequence_settingsA

Change one or more settings of a sequence; anything not passed stays as it is, and passing nothing fails with BAD_ARGS. Every requested value is read back: the result lists applied and not_applied (requested vs actual) and the full settings afterwards; the call fails with FAILED only if Premiere accepted none of them. Changing fps or frame size does not move or scale existing clips. Use set_sequence_frame_size for just the frame size and set_sequence_display_format for just the display formats.

set_sequence_frame_sizeA

Set a sequence's frame size in pixels, for example 1080x1920 for vertical video. Existing clips keep their scale and position; nothing is reframed (use auto_reframe_sequence for a reframed copy). By default the preview file size is set to the same size. Returns the frame and preview size read back and any not_applied settings.

set_sequence_display_formatA

Set how a sequence displays time: the video display format (timecode flavour, frames, or feet+frames) and/or the audio display format (samples or milliseconds). Pass at least one. This changes the timecode strings shown in the timeline and used by sequence_time_to_timecode and set_playhead_timecode; it does not change the frame rate. Returns both formats read back, with names and numeric ids, and an example timecode.

get_sequence_structureA

Read a whole timeline: the sequence description plus every track (index, name, locked, muted, targeted, clip and transition counts) with its clips in order. This is the main tool for reading a timeline. Each clip has clip_id, name, start / end / duration on the timeline and in_point / out_point in the source (all in seconds), media_type, disabled, selected, speed, reversed and the source item_id. Restrict with track_type, skip empty tracks with include_empty_tracks=false, and cap the size with max_clips (truncated=true when clips were left out). For totals only use get_sequence_summary; for one track use list_track_clips.

get_sequence_summaryA

Summarise a sequence without listing clips: duration in seconds and as timecode, content_end (where the last clip ends), fps, frame size, clip counts per track and in total, number of gaps (including the gap before the first clip of each track) and total gap time in seconds, disabled clips, distinct source items used and their ids, number of sequence markers, and whether in/out points are set. Use get_sequence_structure for the clips themselves, find_sequence_gaps for the gaps.

find_sequence_gapsA

Find the empty stretches on every track of a sequence: before the first clip (from time 0) and between clips; time after the last clip is not a gap. Returns one entry per gap with track_type, track_index, start, end and duration in seconds and the indices of the neighbouring clips, plus count and total_gap_duration. Empty tracks report nothing. Use get_track_gaps for one track, close_all_gaps to remove gaps.

get_sequence_in_outA

Read a sequence's in and out points, in seconds from the sequence start. Returns in_set / out_set; an unset point is null, and effective_in / effective_out give the range Premiere would use (the sequence start and end), with its duration. Use get_work_area for the work area bar.

set_sequence_in_outA

Set a sequence's in point and/or out point, in seconds from the sequence start. Pass one or both (BAD_ARGS when neither); the other is left as it is. Times are snapped to whole frames. The in/out range is what create_subsequence and "in to out" exports use. Returns the points read back, as get_sequence_in_out does. Use clear_sequence_in_out to remove them.

clear_sequence_in_outA

Remove a sequence's in point, out point or both (default both), like Clear In and Out in Premiere. Returns the in/out state read back and which point was cleared.

get_work_areaA

Read a sequence's work area: whether the work area bar is enabled, and its in point, out point and duration in seconds from the sequence start. The work area is the range that "work area" exports use when it is enabled. Use get_sequence_in_out for the in/out points.

set_work_area_enabledA

Enable or disable the work area bar of a sequence. The work area range itself cannot be moved by script in Premiere Pro 26.5 (the user must drag the bar); use set_sequence_in_out for a scriptable range. Returns the enabled state and the work area range read back.

set_sequence_start_timeA

Set the start time (zero point) of a sequence: the timecode shown at the first frame of the timeline, such as 01:00:00:00 (3600 s). Pass start_time in seconds or start_timecode in the sequence's display format (one is required); the value is snapped to a whole frame. Clip positions (seconds from the sequence start) do not change. Returns the start time in seconds, as timecode and in ticks.

create_subsequenceA

Create a new sequence that contains the part of a sequence between its in and out points (Make Subsequence). Pass in_point and/or out_point to set the range first (they stay set on the source); otherwise the existing points are used, and the call fails with BAD_ARGS unless both are set. The source's clips are not changed. Returns the range used and the new sequence (new_sequence).

auto_reframe_sequenceA

Create a copy of a sequence in another aspect ratio using Auto Reframe, which analyses the picture and adds motion keyframes to keep the subject in frame. The ratio is numerator:denominator (9:16 vertical, 1:1 square, 4:5, 16:9). The source sequence is not changed; use set_sequence_frame_size to change a frame size without reframing. Analysis continues in the background after the call returns: poll get_sequence_render_status until analysis_done=true. Returns the new sequence (new_sequence) and analysis_done.

export_sequence_fcp_xmlA

Export one sequence as a Final Cut Pro 7 XML file, the interchange format read by DaVinci Resolve, Final Cut and others. No dialog is shown. The folder must exist (FILE_NOT_FOUND otherwise). Returns the output path and file size in bytes; fails with FAILED if no file was written. Use export_project_fcp_xml for the whole project and export_sequence for rendered media.

export_sequence_as_projectA

Write a new Premiere Pro project file that contains only this sequence and the project items it uses; media files are not copied. The current project stays open and unchanged. The folder must exist. Returns the output path and file size in bytes; fails with FAILED if no file was written. Use consolidate_project to also collect the media.

get_sequence_render_statusA

Read the render bar of a sequence: the time ranges (seconds from the sequence start) that are green (preview files rendered), yellow (unrendered, expected to play in real time) and red (unrendered, needs rendering for real-time playback), with the total seconds of each colour, fully_rendered and needs_render. Also reports whether background video effects are incomplete and whether effect analysis (after auto_reframe_sequence, for example) has finished. The sequence is made active for the reading and the previously active sequence is restored.

render_sequence_previewsA

Render preview files for the entire sequence, whatever its in/out points, so yellow and red parts of the render bar turn green. The call blocks Premiere Pro until rendering is done, which can take minutes on long or heavy sequences; other tools get ENGINE_BUSY meanwhile (timeout 30 min). Returns fully_rendered, the rendered (green) seconds before and after, render_seconds (time taken) and the render status afterwards. Use get_sequence_render_status first to see whether anything needs rendering, and delete_sequence_previews to discard the files.

delete_sequence_previewsA

Discard the rendered preview files of a sequence, for the whole sequence or a time range; the render bar of that range goes back to unrendered. Clips and effects are not touched. Returns deleted_duration (seconds of rendered previews removed), the green seconds before and after, and the render status afterwards.

detect_scene_editsA

Run Premiere's Scene Edit Detection on video clips of a sequence to find the original cut points inside already-edited footage. operation "create_markers" (default) adds a clip marker on the source project item at each detected cut and leaves the timeline as it is; "apply_cuts" razors the clips at each detected cut. Pass clip_ids to choose the clips (the timeline selection is replaced by them and stays so); without clip_ids the selected video clips are analysed, and BAD_ARGS when none is selected. The call blocks until the analysis is done (roughly the footage duration on first analysis; timeout 15 min). Returns the clips analysed, the new cut times on the timeline in seconds (apply_cuts), the new markers with their source time in seconds (create_markers), and the video clip count before and after. Use detect_scene_changes_in_file to analyse a file on disk instead.

attach_sequence_custom_propertyA

Store a custom key/value pair on a sequence, saved inside the project file, so pipelines can tag sequences with their own ids or states. It travels with the sequence, for example into a project written by export_sequence_as_project. The scripting API cannot read such properties back, so keep your own record of what you attached. Attaching the same property_id again replaces its value. Returns attached=true with the id and value.

sequence_time_to_timecodeA

Convert a time in seconds from the sequence start to the timecode string Premiere shows for it in that sequence, honouring the sequence's frame rate, video display format and start time. Also returns the 0-based frame number and the time snapped to a whole frame. Use convert_time for arithmetic at any frame rate without a sequence, sequence_timecode_to_time for the reverse.

sequence_timecode_to_timeA

Convert a timecode string in a sequence's own display format to seconds from the sequence start, honouring its frame rate and start time. Accepts "00:01:02:15", drop-frame "00;01;02;15", a frame count or feet+frames ("12+08"), matching the display format; malformed text or a time before the sequence start fails with BAD_ARGS. Returns the time in seconds, the 0-based frame number and the normalised timecode. Use set_playhead_timecode to move the playhead to a timecode.

insert_clipA

Insert a project item into a sequence at a time and push everything from that time onwards later by the item's length, on ALL tracks (clips that span the time are cut there), so the whole sequence stays in sync. With ripple_all_tracks=false only the tracks that receive material are pushed (what Premiere's scripting insert does natively). Picture goes to video_track_index and the item's audio, linked to it, to audio_track_index. Optionally use only part of the source (source_in / source_out, seconds of source time). Use overwrite_clip to replace what is there without shifting, place_clip_on_track to touch exactly one track, append_clip to add at the end. Returns the clips that were created (video and linked audio) and the sequence duration before and after.

overwrite_clipA

Place a project item in a sequence at a time, replacing whatever occupies that span on the tracks that receive material; nothing else moves. Picture goes to video_track_index and the item's audio, linked to it, to audio_track_index. Optionally use only part of the source (source_in / source_out, seconds of source time). Use insert_clip to push later material right instead, place_clip_on_track for a single track. Returns the created clips and the sequence duration.

append_clipA

Place a project item right after the last clip of the tracks it lands on: the picture goes to video_track_index, the audio (linked) to audio_track_index, and the clip starts at the later of the ends of the tracks that really receive material (a still or a silent video only looks at the video track, a sound file only at the audio track). With after_sequence_end=true it starts after the last clip of the whole sequence instead. Nothing is overwritten or shifted. Returns the start time used, the created clips and the sequence duration.

add_clips_sequentiallyA

Place several project items one after another starting at a time (default: the later of the ends of the two target tracks), each clip starting where the previous one ended. Picture goes to video_track_index, audio (linked to its picture) to audio_track_index. mode "overwrite" (default) replaces what is in the way on the target tracks; mode "insert" pushes later material right on all tracks. Use it to assemble a rough cut or a slideshow in one call. Returns the created clips in order (each with the index of its item as order), the time where the next clip would start and the sequence duration.

place_clip_on_trackA

Put a project item on exactly one track at a time, replacing what occupies that span on that track (mode "insert" pushes that track's later clips right instead). On a video track only the picture is placed and on an audio track only the sound, and no other track is touched (linked=false, the default). With linked=true the item's other half is placed too, linked, on the track with the same number of the other type (V2 with A2), overwriting what is there. Use it for B-roll, overlays, music beds. Fails with BAD_ARGS when the item has no media of the track's type. Returns the created clips.

remove_clipA

Remove one clip from the timeline. ripple=false (default) leaves a gap. ripple=true closes it: everything that starts at or after the removed clip's end, on all tracks, moves left by its length so the sequence stays in sync (a track where that would make clips collide is left alone and listed in tracks_not_rippled). ripple=true is the tool for a ripple delete. include_linked (default true) removes the linked audio/video clips too. Use remove_clips for several clips, lift_range / extract_range for a time span. Returns what was removed and the sequence duration before and after.

remove_clipsA

Remove several clips in one call, by clip id. ripple=false (default) leaves gaps. ripple=true closes each gap: everything that starts at or after the removed clip's end, on all tracks, moves left by its length so the sequence stays in sync (a track where that would make clips collide is left alone and listed in tracks_not_rippled). include_linked (default true) also removes their linked audio/video clips. Ids that no longer exist are reported in not_found instead of failing the call. Returns the removed clips and the sequence duration.

move_clipA

Move a clip along its track: by a relative amount (delta, seconds; negative = earlier) or to an absolute timeline start (start, seconds). Pass exactly one of them. The clip keeps its duration, source range and effects; material already at the destination on that track is overwritten (covered clips are trimmed or removed). include_linked (default true) moves the linked audio/video clips by the same amount. Use move_clips for several clips, move_clip_to_track to change track. Returns the clip at its new position.

move_clipsA

Shift several clips by the same amount (delta, seconds; negative = earlier) in one call, keeping their distances to each other. Material already at the destinations is overwritten (covered clips are trimmed or removed), except clips that are part of the move. include_linked (default true) moves the linked audio/video clips too. Ids that do not exist are listed in not_found. To shift everything after a point use insert_gap or extract_range. Returns the moved clips at their new positions.

move_clip_to_trackA

Move a clip to another track of the same type (video to video, audio to audio), optionally to a new start time as well. The clip keeps its source range, effects and duration; material at the destination is overwritten (covered clips are trimmed or removed). Linked clips on other tracks stay where they are and stay linked. Use move_clip to move along the same track. Returns the clip on its new track.

trim_clip_startA

Move the head (left edge) of a clip while its end stays where it is: the clip gets shorter or longer and its source in point changes by the same amount, so the picture does not shift in time. Pass time (new timeline start, seconds) or delta (seconds; positive trims material off, negative extends). Neighbouring clips do not move: extending stops at the previous clip and at the first frame of the source. include_linked (default true) trims the linked audio/video clips the same way. Returns the trimmed clip with its real new start.

trim_clip_endA

Move the tail (right edge) of a clip while its start stays where it is; the source out point changes with it. Pass time (new timeline end, seconds) or delta (seconds; negative trims material off, positive extends). Without ripple neighbouring clips do not move and the clip stops growing at the next clip. With ripple=true everything that starts at or after the clip's old end, on all tracks, shifts by the change so the sequence stays in sync (a track where that would make clips collide is left alone and listed in tracks_not_rippled). Extending always stops at the end of the source media. include_linked (default true) trims the linked audio/video clips the same way. Returns the trimmed clip with its real new end.

set_clip_in_outA

Choose which part of the source a timeline clip plays: source_in and/or source_out in seconds from the media start. The clip's timeline start stays put and its duration becomes source_out - source_in, so the end moves (later clips are not shifted). To keep the duration and only change the content use slip_clip. Linked clips are not changed. Returns the clip.

set_clip_durationA

Make a clip exactly duration seconds long by moving its end (the start and source in point stay; speed does not change). ripple=false (default) leaves a gap when shortening and stops at the next clip when lengthening. With ripple=true everything that starts at or after the clip's old end, on all tracks, shifts by the change so the sequence stays in sync (a track where that would make clips collide is left alone and listed in tracks_not_rippled). Video and audio cannot grow past the end of their source media (stills can): the result reports the real duration. include_linked (default true) applies the same to the linked audio/video clips. For many clips use set_clips_duration. Returns the clip.

set_clip_boundsA

Set both timeline edges of a clip: start and end in seconds. Each edge is trimmed (the picture does not shift in time: the source in/out follow the edges), neighbours do not move. An edge stops at the neighbouring clip and at the limits of the source media, so check the returned start and end. To move a clip without trimming use move_clip. include_linked (default true) applies the same edges to the linked audio/video clips. Returns the clip.

set_clips_durationA

Give many clips the same length in one call, e.g. make every still 3 s. Choose the clips with clip_ids, or with a track (track_type + track_index), optionally only stills (stills_only=true). ripple=true (default) keeps the timeline contiguous and in sync: after each changed clip, all later clips on every track shift by that clip's change (a track where that would make clips collide is left alone and listed in tracks_not_rippled). ripple=false only moves each clip's end (a clip stops growing at the next clip). Linked audio/video clips get the same duration when include_linked is true (default). Video and audio clips cannot grow beyond their source media. Returns every changed clip.

split_clipA

Cut one clip in two at a timeline time (seconds, must fall inside the clip, not on an edge). include_linked (default true) cuts the linked audio/video clips at the same time so both halves stay in sync. The left halves stay linked to each other and so do the right halves. Other clips are untouched. Use razor_track / razor_all_tracks to cut whole tracks. Returns both halves (left, right) and the halves of the linked clips.

razor_trackA

Cut one track at a timeline time (seconds): the clip under that time on that track is split in two. Nothing happens when the time falls in a gap or on an existing edit. Returns whether a cut was made and the clips on both sides of it.

razor_all_tracksA

Cut every video and audio track at a timeline time (seconds), like Add Edit to All Tracks; linked audio and video stay linked half by half. With targeted_only=true only the tracks whose target toggle is on are cut (Add Edit). Returns the number of cuts made and the clips that now start at that time.

razor_at_timesA

Make cuts at several timeline times (seconds) in one call, on every track or on one track (track_type + track_index). Use it to chop a sequence on beats, markers or scene changes. Times in gaps or on existing edits make no cut. Returns the number of cuts made per time and the clip count afterwards.

duplicate_clipA

Copy a timeline clip to another time and/or another track of the same type, with its source range, effects, keyframes and speed (like Alt-dragging it). Default time: right after the original; default track: the original's. mode "overwrite" (default) replaces what is at the destination, "insert" pushes that track's later clips right. Only the addressed clip is copied: duplicate its linked audio/video with a second call. Returns the new clip, the original and effects_copied (false only if Premiere could not copy and the source was placed again without effects).

replace_clip_mediaA

Swap the source of a timeline clip for another project item while keeping its track, timeline start and duration. The new source is used from source_in (default: the same source in point as before). Fails when the new item is too short to fill the clip. Linked clips are not changed. Returns the clip with its new source.

slip_clipA

Slip a clip: change which part of the source it shows without moving or resizing it on the timeline. offset is in seconds: positive shows later source material (source in and out both increase). Needs unused source media (handles) in that direction. include_linked (default true) slips the linked audio/video clips too. Returns the clip with its new source in/out and the offset actually applied.

slide_clipA

Slide a clip between its neighbours: the clip moves by offset seconds (positive = later) keeping its content and duration, while the previous clip's end and the next clip's start are trimmed to follow, so the total length does not change. Needs clips touching it on both sides with enough source media (BAD_ARGS otherwise). include_linked (default true) slides the linked audio/video clips too. Returns the clip, its two neighbours and the offset actually applied.

roll_editA

Roll the edit point at one edge of a clip: the cut between this clip and its neighbour moves by offset seconds (positive = later) - one clip gets longer, the other shorter, nothing else moves. edge "start" rolls the cut with the previous clip, "end" (default) the cut with the next clip. Needs source media on the clip that grows. include_linked (default true) rolls the same cut on the linked clips. Returns both clips around the edit.

lift_rangeA

Remove everything between two timeline times (seconds) and leave the gap: clips crossing a boundary are cut there, the part inside the range is deleted, nothing shifts. Works on every track, or on one track type / one track. Use extract_range to close the gap as well. Returns the removed clip count and the sequence duration.

extract_rangeA

Remove everything between two timeline times (seconds) on ALL tracks and close the gap: clips crossing a boundary are cut there, the inside is deleted and all later material moves left by the range length. Use lift_range to keep the gap. Returns the removed clip count, the shift applied and the sequence duration before and after.

insert_gapA

Open empty space on all tracks: everything at or after time moves later by duration seconds, and a clip that spans the time is cut there (its second part moves). Use it to make room before inserting material by hand. Returns the number of clips moved and the sequence duration.

close_gap_atA

Close the empty space that contains a timeline time on one track: the clips after it on that track move left until they touch the previous clip (or time 0). Only that track moves; with include_linked=true the linked audio/video clips of the moved clips move by the same amount when they have room (those that do not are listed in linked_not_moved). Fails with NOT_FOUND when a clip occupies that time or nothing follows it. Returns the gap that was closed and the number of clips moved.

close_all_gapsA

Remove empty space between clips. mode "per_track" (default) packs each selected track on its own: every clip moves left until it touches the previous one (linked audio and video can lose sync if their tracks have different gaps). mode "together" removes only the time ranges that are empty on every track and shifts all tracks by the same amount, so sync is kept. Select one track with track_type + track_index, one type with track_type, or everything by default. Returns the gaps closed and the sequence duration before and after.

get_clip_infoA

Everything about one timeline clip: id, name, track, timeline start/end/duration (seconds and frames), source in/out, speed, disabled, selected, its source project item (name, path, media file), the linked clips, the neighbouring clips and gaps on its track, and the names of its effect components.

list_clipsA

List the clips of a sequence in track and time order, with optional filters: track_type, track_index, name_contains (case-insensitive) or name_regex, item_id (clips made from one project item), disabled_only. Each clip has its id, track, start/end/duration and source in/out in seconds. Address clips by clip_id: clip_index is Premiere's internal position, which is not always the time order after clips were moved. Use get_clips_in_range or get_clip_at_time to query by time.

get_clip_at_timeA

Find the clips under a timeline time (seconds): one per track that has a clip there, optionally limited to a track type or one track. A clip covers its start but not its end. Returns the clips with video tracks from top to bottom first (the first video clip is the one visible when nothing above is transparent), and the offset into each clip.

get_clips_in_rangeA

List the clips that overlap a timeline range (start to end, seconds), optionally limited to a track type or one track. With fully_inside=true only clips that lie completely inside the range are returned. Each clip reports how many seconds of it fall inside the range.

list_tracksA

List the video and audio tracks of a sequence with their state. For each track: track_type, track_index (0 = V1/A1), label (V1, A2...), name, track_id, clip_count, transition_count, empty, locked, muted (for a video track: its output eye is off), targeted, sync_locked and end (seconds where its last clip ends). Reading sync lock makes the sequence the active one. Use get_track_info for one track with its gaps, list_track_clips for its clips, get_sequence_structure for all clips.

get_track_infoA

Describe one track of a sequence: the same fields as list_tracks (name, track_id, clip and transition counts, locked, muted, targeted, sync_locked, end in seconds) plus its gaps (empty stretches before and between clips, at least half a frame long, in seconds), gap_count, gaps_duration and clips_duration. Makes the sequence active (to read sync lock).

add_video_tracksA

Add one or more empty video tracks to a sequence. By default they go on top (above the highest video track). insert_at places the first new track at that 0-based index and shifts the tracks from there upward, so existing track indices change. Returns the new tracks (track_index, label, name, track_id) and the new track counts. Use add_audio_tracks for audio.

add_audio_tracksA

Add one or more empty audio tracks of one channel type to a sequence. By default they go below the last audio track. insert_at places the first new track at that 0-based index and shifts the later tracks down, so existing track indices change. Returns the new tracks (track_index, label, name, track_id), the channel type and the new track counts. Use add_video_tracks for video.

delete_trackA

Delete one track from a sequence together with every clip on it. Higher tracks of that type shift down by one index. The last track of a type cannot be deleted (UNSUPPORTED), and a locked track is refused with FAILED (unlock it with set_track_lock first). Returns the deleted track (with its clip_count) and the new track counts. Use remove_empty_tracks to drop all empty tracks, clear_track to keep the track but remove its clips.

remove_empty_tracksA

Delete every track of a sequence that has no clips (Premiere's Delete Tracks > All Empty Tracks), optionally only video or audio. Premiere always keeps at least one track of each type. Returns removed_video, removed_audio and the remaining track counts. Use delete_track for one specific track.

rename_trackA

Set the name shown in the header of one track. Makes the sequence active. Returns the track state with the new name and old_name.

set_track_muteA

Mute or unmute one track. For an audio track this is the M button; for a video track it is the "toggle track output" eye (muted = the track is hidden from the program output). Returns the track state read back. Use solo_audio_track to hear only one audio track, set_all_tracks_mute for every track.

set_track_lockA

Lock or unlock one track. Clips on a locked track cannot be edited, moved or deleted, by the user or by other tools. Returns the track state read back. Use set_all_tracks_lock for every track.

set_track_sync_lockA

Turn sync lock on or off for one track. A sync-locked track shifts together with the others when an insert or ripple edit happens on another track; with sync lock off it stays where it is. Makes the sequence active. Returns the track state read back. Use set_all_tracks_sync_lock for every track.

set_track_targetA

Turn track targeting on or off for one track (the highlighted V1/A1 header button). Targeted tracks are the ones that Premiere's razor-at-playhead, paste, Up/Down edit-point keys and match frame act on, and that tools with a targeted-only option use. Returns the track state read back. Use set_all_tracks_target for every track.

get_targeted_tracksA

Return which video and audio tracks of a sequence are targeted: track_index, label and name of each, per type (empty lists when none). Use set_track_target to change one.

set_all_tracks_targetA

Turn track targeting on or off for every video and/or audio track of a sequence in one call. Returns how many tracks changed and the targeted track indices per type afterwards.

set_all_tracks_lockA

Lock or unlock every video and/or audio track of a sequence in one call. Returns how many tracks changed and the locked track indices per type afterwards.

set_all_tracks_muteA

Mute or unmute every video and/or audio track of a sequence in one call (muting a video track hides it from the output). Returns how many tracks changed and the muted track indices per type afterwards. muted=false with track_type="audio" undoes solo_audio_track.

set_all_tracks_sync_lockA

Turn sync lock on or off for every video and/or audio track of a sequence in one call. Turn it off before an insert or ripple edit that must not shift the other tracks. Makes the sequence active. Returns how many tracks changed and the sync-locked track indices per type afterwards.

solo_audio_trackA

Make only one audio track audible: unmutes that track and mutes every other audio track of the sequence. It changes the mute buttons, not Premiere's S button, which scripting cannot reach, so earlier mute states are not restored. Pass solo=false to end it: every audio track is unmuted. Returns the muted and audible audio track indices afterwards.

list_track_clipsA

List the clips of one track in order with clip_id, clip_index, name, start, end, duration, source in/out points (all in seconds), speed, disabled and selected flags and the source item_id, optionally only those that overlap a time range. Returns total_clips on the track and count returned. Use get_sequence_structure or list_clips for clips of all tracks.

get_track_gapsA

Find the empty stretches of one track: before the first clip and between clips; time after the last clip is not a gap. Returns each gap's start, end and duration in seconds and the index of the clip after it, plus count and total_duration. Read-only: use close_gap_at or close_all_gaps to remove gaps, find_sequence_gaps for every track.

clear_trackA

Remove every clip from one track and keep the track itself. Other tracks are not shifted (no ripple), and linked clips on other tracks stay. Fails with FAILED on a locked track. Returns the track state and removed (number of clips). Use delete_track to remove the track too.

list_video_transitionsA

List the names of the video transitions installed in Premiere Pro (about 157 in 26.5, legacy ones included), optionally filtered by a substring. Use a name with add_video_transition, add_transition_at_cut, add_transitions_to_all_cuts or replace_transition. Returns {total, count, names}. Use list_video_effects for effects.

list_audio_transitionsA

List the audio transition (crossfade) names installed in Premiere Pro: Constant Power, Constant Gain and Exponential Fade in 26.5. Use a name with add_audio_transition or add_transition_at_cut on an audio track. Returns {count, names}.

add_video_transitionA

Add a video transition at the start, end or both edges of one video clip. If the edge touches an adjacent clip the transition joins the two clips (aligned per alignment); otherwise it is single-sided inside the clip (a fade from/to nothing). A clip on a audio track fails with BAD_ARGS; a clip too short for the duration fails with FAILED. Use add_transition_at_cut to target a cut by time, add_transitions_to_all_cuts for a whole track. Names come from list_video_transitions. Returns {clip, added: [transition...], skipped: [...]}. Each transition is {track_type, track_index, transition_index, transition_id, name, match_name, start, end, duration, cut_time, alignment, edge, from_clip, to_clip}: times in seconds of sequence time; edge is "cut" (between two adjacent clips), "clip_start" or "clip_end" (single-sided); alignment is center / start_at_cut / end_at_cut / offset for cuts; from_clip / to_clip are {clip_id, name, clip_index, start, end} of the outgoing / incoming clip (null on the missing side).

add_audio_transitionA

Add a audio transition at the start, end or both edges of one audio clip. If the edge touches an adjacent clip the transition joins the two clips (aligned per alignment); otherwise it is single-sided inside the clip (a fade from/to nothing). A clip on a video track fails with BAD_ARGS (pass track_type "audio" when addressing the clip by position); a clip too short for the duration fails with FAILED. Use add_transition_at_cut to target a cut by time, add_transitions_to_all_cuts for a whole track. Names come from list_audio_transitions. Returns {clip, added: [transition...], skipped: [...]}. Each transition is {track_type, track_index, transition_index, transition_id, name, match_name, start, end, duration, cut_time, alignment, edge, from_clip, to_clip}: times in seconds of sequence time; edge is "cut" (between two adjacent clips), "clip_start" or "clip_end" (single-sided); alignment is center / start_at_cut / end_at_cut / offset for cuts; from_clip / to_clip are {clip_id, name, clip_index, start, end} of the outgoing / incoming clip (null on the missing side).

add_transition_at_cutA

Find the cut (one clip ending exactly where the next starts) nearest to a time on a track, within tolerance, and put a transition there (centred by default). Fails with NOT_FOUND when no cut is within tolerance. Use list_cuts to see the cuts, add_video_transition / add_audio_transition for a clip edge without a neighbour. Returns {cut_time, skipped, transition, replaced}. Each transition is {track_type, track_index, transition_index, transition_id, name, match_name, start, end, duration, cut_time, alignment, edge, from_clip, to_clip}: times in seconds of sequence time; edge is "cut" (between two adjacent clips), "clip_start" or "clip_end" (single-sided); alignment is center / start_at_cut / end_at_cut / offset for cuts; from_clip / to_clip are {clip_id, name, clip_index, start, end} of the outgoing / incoming clip (null on the missing side).

add_transitions_to_all_cutsA

Put the same transition on every cut of one track, or of every track of a type (default: all video tracks). With include_audio, also adds an audio crossfade on the linked audio tracks where they are cut at the same time. Unlike the single-cut tools, existing transitions are kept (reported in skipped_cuts) unless replace_existing is true. Gaps are not cuts. A cut that fails is reported in errors and the rest continue; an unknown transition name fails the whole call. Returns {cuts, added, skipped, failed, transitions, skipped_cuts, errors}. Each transition is {track_type, track_index, transition_index, transition_id, name, match_name, start, end, duration, cut_time, alignment, edge, from_clip, to_clip}: times in seconds of sequence time; edge is "cut" (between two adjacent clips), "clip_start" or "clip_end" (single-sided); alignment is center / start_at_cut / end_at_cut / offset for cuts; from_clip / to_clip are {clip_id, name, clip_index, start, end} of the outgoing / incoming clip (null on the missing side).

list_cutsA

List the cuts on one track: every place where a clip ends exactly where the next one starts (gaps are not cuts), with the two clips and the transition already on the cut (or null). Use it before add_transition_at_cut. Returns {clip_count, count, cuts: [{time, from_clip, to_clip, transition}]}.

list_track_transitionsA

List the transitions on one track in time order, with the clips each one joins. transition_index in the result is what remove_transition, set_transition_duration and replace_transition take. Returns {count, transitions}. Each transition is {track_type, track_index, transition_index, transition_id, name, match_name, start, end, duration, cut_time, alignment, edge, from_clip, to_clip}: times in seconds of sequence time; edge is "cut" (between two adjacent clips), "clip_start" or "clip_end" (single-sided); alignment is center / start_at_cut / end_at_cut / offset for cuts; from_clip / to_clip are {clip_id, name, clip_index, start, end} of the outgoing / incoming clip (null on the missing side).

list_sequence_transitionsA

List the transitions on every track of a sequence (or every track of one type). Use list_track_transitions for one track. Returns {count, transitions}. Each transition is {track_type, track_index, transition_index, transition_id, name, match_name, start, end, duration, cut_time, alignment, edge, from_clip, to_clip}: times in seconds of sequence time; edge is "cut" (between two adjacent clips), "clip_start" or "clip_end" (single-sided); alignment is center / start_at_cut / end_at_cut / offset for cuts; from_clip / to_clip are {clip_id, name, clip_index, start, end} of the outgoing / incoming clip (null on the missing side).

get_clip_transitionsA

Return the transitions touching one clip: at_start (on its in edge, or null), at_end (on its out edge, or null), and the full list. Each transition is {track_type, track_index, transition_index, transition_id, name, match_name, start, end, duration, cut_time, alignment, edge, from_clip, to_clip}: times in seconds of sequence time; edge is "cut" (between two adjacent clips), "clip_start" or "clip_end" (single-sided); alignment is center / start_at_cut / end_at_cut / offset for cuts; from_clip / to_clip are {clip_id, name, clip_index, start, end} of the outgoing / incoming clip (null on the missing side).

remove_transitionA

Delete one transition from a track, chosen by transition_index (from list_track_transitions) or by a time inside it. The clips are not changed. Fails with NOT_FOUND when nothing matches. Use remove_all_transitions for a whole track or sequence. Returns {removed, remaining}.

remove_all_transitionsA

Delete every transition on one track (track_type + track_index), on every track of one type (track_type only), or in the whole sequence (neither). The clips are not changed. Returns {removed, remaining, tracks_visited}.

set_transition_durationA

Change the duration of an existing transition, chosen by transition_index or time. It stays on the same cut or clip edge and keeps its alignment (or takes the alignment given); its Effect Controls settings are kept. The new start/end are written directly; if Premiere refuses them, the transition is removed and re-added with the same name (method is then "removed and re-added" and custom settings are lost). Returns {before, after, method}.

replace_transitionA

Swap an existing transition for a different one (e.g. Cross Dissolve -> Dip to Black) on the same clip edge, chosen by transition_index or time. Keeps its alignment (an "offset" alignment becomes "center") and, unless duration is given, its duration. The old transition's Effect Controls settings are not carried over. If adding the new one fails, the original is put back. Returns {before, after}.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 456 tools

Disambiguation3/5

The server has many overlapping tools (e.g. get_clip_info / get_clip_details / get_clip_source_info, list_clips / get_sequence_structure / list_track_clips, set_clip_scale / fit_clip_to_frame / fill_clip_to_frame), so an agent can easily hesitate. Descriptions are unusually detailed and often cross-reference the right alternative, which prevents the set from collapsing into true ambiguity, but the sheer number of near-neighbours keeps boundaries fuzzy.

Naming Consistency4/5

Most names follow a predictable snake_case verb_noun pattern (get_*, set_*, list_*, add_*, remove_*, apply_*), which makes the surface readable. A few names deviate (ping, undo, redo, ken_burns, sequence_timecode_to_time), but these are natural exceptions rather than a different convention.

Tool Count1/5

456 tools is an extreme mismatch for any single MCP server, even one as broad as Premiere Pro automation. The surface is far beyond the 3-15 tool sweet spot and forces both the agent and the user to navigate a huge catalogue for routine edits.

Completeness5/5

The tool set covers project, sequence, timeline, clip, track, transition, effect, keyframe, audio, colour, marker, caption, media-file and export workflows with deep lifecycle support. Known Premiere API limits (no project-item relink, no native text creation, no track-effect deletion) are explicitly documented and usually workaroundable, so there are no unexpected dead ends for the stated domain.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues