Edits plugins can make
A plugin sends these in the ops of its answer, as JSON objects, and FrameX applies them together as one undoable step. They're the same edits FrameX's AI makes. Times are seconds on the timeline, as it is before any of them run. The guide is Writing FrameX plugins.
A clip target is {"clipId":id} or {"time":s}, meaning the clip under that time.
A range target is a clip target or {"start":s,"end":s}, which cuts that range out into its own clip first.
{"op":"split","time":s}: make a cut. Nothing is removed.
{"op":"delete_range","start":s,"end":s}: remove footage and close the gap.
{"op":"delete_clip", clip target}
{"op":"set_transition","time":s,"type":T,"duration":0.75}: transition at a cut. Creates the cut if there isn't one. T is one of fade, fadeblack, fadewhite, fadegrays, dissolve, distance, wipeleft, wiperight, wipeup, wipedown, diagtl, diagtr, diagbl, diagbr, radial, slideleft, slideright, slideup, slidedown, smoothleft, smoothright, smoothup, smoothdown, circleopen, circleclose, circlecrop, rectcrop, vertopen, vertclose, horzopen, horzclose, pixelize, hblur, hlslice, hrslice, vuslice, vdslice, squeezeh, squeezev, zoomin, whip, zoompunch, spin, blurpush, glitch, filmburn, lightleak, lumawipe, inkwipe.
{"op":"remove_transition","time":s}
{"op":"set_fade", range target, "fadeIn":s, "fadeOut":s, "color":"black"|"white"}: fade the picture and sound at the edges of a clip.
{"op":"set_speed", range target, "speed":0.1-16}
{"op":"set_volume", range target, "volume":0-4}: 1 is unchanged, 0 is mute.
{"op":"set_reverse", range target, "reverse":true}: plays backwards. Up to 30 seconds of source.
{"op":"freeze_frame","time":s,"duration":2}: holds that frame, pushing what follows along.
{"op":"speed_ramp","start":s,"end":s,"speed":0.25,"steps":3}: eases into that speed and back out, the usual slow motion around a big moment.
{"op":"add_hidden_area", range target, "x":0-1,"y":0-1,"w":0-1,"h":0-1,"style":"blur"|"pixelate"|"black"}: covers a rectangle of the picture, such as a name. x and y are its top-left corner.
{"op":"remove_hidden_area","clipId":id,"index":n}
{"op":"trim_clip", clip target, "in":source_s, "out":source_s}
{"op":"move_clip","clipId":id,"toIndex":n}
{"op":"duplicate_clip","clipId":id}
{"op":"replace_clip","clipId":id,"assetId":id}: other footage in the clip's place, keeping its timing, effects and edits.
{"op":"swap_clips","a":clip_id,"b":clip_id}: two main-track clips trade places.
{"op":"insert_asset","assetId":id,"time":s,"in":source_s,"out":source_s}: on the main track. time omitted means append.
LAYERS: tracks above the main one. Clip ops also take an overlay's id as clipId.
{"op":"add_overlay","assetId":id,"start":s,"in":source_s,"out":source_s,"duration":s,"track":0,"x":0.5,"y":0.5,"scale":1}: picture in picture, b-roll, a logo or picture. x and y are the centre, 0-1. scale 1 fits the frame.
{"op":"update_overlay","clipId":id,"start":s,"track":n,"blend":B}: B is one of normal, screen, multiply, add, overlay, softlight, darken, lighten, difference.
{"op":"split_item","id":id,"time":s}: cut a title, overlay or audio clip.
PLACING AND ANIMATING
{"op":"set_transform", range target, "x":0.5,"y":0.5,"scale":1,"rotation":deg,"opacity":0-1,"cropLeft":0,"cropRight":0,"cropTop":0,"cropBottom":0,"flipH":false,"flipV":false,"fit":"fit"|"fill"|"stretch"}: any subset. Use "fill" when a clip must cover a different shape of frame.
{"op":"set_keyframe","clipId":id,"prop":P,"time":s,"value":v,"ease":"smooth"|"linear"|"hold"|{"bezier":{"x1":0.42,"y1":0,"x2":1,"y2":1}}}: P is x, y, scale, rotation, opacity or volume. Two or more make it animate, for zooms, moves and volume rides. A slow zoom is scale 1 at the clip's start and 1.15 at its end.
{"op":"remove_keyframe","clipId":id,"prop":P,"time":s}, {"op":"clear_keyframes","clipId":id,"prop":P}
{"op":"set_label","ids":[id],"label":"violet"|"iris"|"caribbean"|"lavender"|"cerulean"|"forest"|"rose"|"mango"|null}: colour-codes clips, titles or sounds on the timeline. It doesn't show in the video.
COLOUR AND EFFECTS
{"op":"adjust_color", range target, "brightness":-1..1, "contrast":0-3, "saturation":0-3}: 0, 1 and 1 are unchanged.
{"op":"set_grade", range target, "temperature":-1..1, "tint":-1..1, "gamma":-1..1, "shadows":-1..1, "highlights":-1..1, "vibrance":-1..1, "hue":-180..180}: 0 is unchanged. Positive temperature is warmer.
{"op":"apply_look", range target, "look":L}: a ready-made grade. L is one of Natural, Warm, Cool, Cinematic, Vivid, Faded, Vintage, Noir, Night, Punchy.
{"op":"add_effect", range target, "kind":E, "amount":0-1, "color":"#00ff00"}: E is one of blur, sharpen, vignette, grayscale, sepia, invert, pixelate, grain, glitch, posterize, edges, shake, fisheye, letterbox, denoise, stabilize, chromakey. color is only for chromakey, the colour to remove.
{"op":"update_effect", range target, "kind":E, "amount":0-1}, {"op":"remove_effect", range target, "kind":E}
TITLES
{"op":"add_text","text":"...","start":s,"duration":3,"x":0.5,"y":0.85,"size":0.06,"color":"#ffffff","box":false,"fade":0.25,"font":F,"bold":false,"italic":false,"align":"left"|"center"|"right","outline":0-0.05,"outlineColor":"#000000","shadow":true,"boxColor":"#000000","opacity":1,"anim":A}: x and y are the anchor, 0-1. size is a fraction of frame height. A is one of fade, none, slideup, slideleft, pop, typewriter. F is one of Arial, Arial Black, Bahnschrift, Calibri, Comic Sans MS, Consolas, Courier New, Franklin Gothic, Georgia, Impact, Palatino, Segoe UI, Segoe Print, Segoe Script, Tahoma, Times New Roman, Verdana. Only give the fields you need.
{"op":"update_text","id":id, ...fields}, {"op":"remove_text","id":id}
{"op":"add_captions","start":s,"end":s,"wordByWord":false,"y":0.88,"size":0.05}: titles from the transcript. Needs transcribed media. wordByWord shows a few words at a time with the spoken one lit up; use y 0.72 and size 0.075 for it.
SOUND
{"op":"add_audio","assetId":id,"start":s,"volume":1,"fadeIn":0,"fadeOut":0}: music or voice under the main track.
{"op":"update_audio","id":id,"start":s,"volume":1,"fadeIn":0,"fadeOut":0,"duck":0-1}: duck turns it down while the main track has sound, the usual treatment for music under speech.
{"op":"remove_audio","id":id}
{"op":"detach_audio", clip target}: moves a clip's sound to its own track.
{"op":"set_audio_fx", target, "enhance":true,"denoise":true,"normalize":true,"compress":true,"bass":dB,"treble":dB,"pan":-1..1}: target can also be an audio clip's id as clipId. Any subset. "enhance" cleans up a voice in one go, for "make the voice clearer" or "fix the audio".
PROJECT
{"op":"set_canvas","width":1080,"height":1920,"fps":30,"background":"#000000"}: change the shape of the video, for instance 1080x1920 for vertical.
{"op":"add_marker","time":s,"label":"..."}, {"op":"remove_marker","id":id}