{"at":"2026-11-23T03:24:33.653Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T03:24:34.580Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T03:24:34.730Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T03:24:35.652Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"ResolveMCP-ext","version":"1.30.0"}}}}
{"at":"2026-11-23T03:24:35.652Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:24:35.652Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:24:35.656Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Clip effects and effect properties on TimelineItems (Resolve 21.1.2+).\n\nThe upstream server has no coverage for the 21.1.2 \"Clip Effect Actions\"\nand \"Effect Properties\" APIs. This tool exposes them.\n\nActions:\n  list_available(media_type?) -> {effects, count}\n    — every effect Resolve can apply. media_type: 'video' (default),\n      'photo' or 'audio'. Each entry: {category, id, name}.\n      This is the lookup you need before apply().\n      Example: find the id for a Fusion text+ via\n      list_available(media_type=\"video\").\n  list_applied(item_id?|name?, track_type?, track_index?, category?)\n    -> {effects, count}\n    — effects currently ON a timeline item. category filters to\n      'fusion' | 'ofx' | 'audio'; omit for all three.\n  apply(item_id?|name?, category, id, track_type?, track_index?)\n    -> {effect: {category,id,name,index,enabled}}\n    — applies an effect to a timeline item. Get category+id from\n      list_available().\n  remove(item_id?|name?, indices?|category?, track_type?, track_index?)\n    -> {removed: [...]}\n    — removes effects from a timeline item. Either give explicit 1-based\n      `indices` (with `category`), or `category` alone to remove every\n      effect of that category.\n  set_enabled(item_id?|name?, index, enabled, category?, track_type?,\n              track_index?) -> {success, effect}\n    — toggle one effect on/off by its index.\n  reorder(item_id?|name?, index, new_index, category?, track_type?,\n          track_index?) -> {success, effects}\n    — move an effect to another position in its category's stack.\n\nAddressing a timeline item: give `item_id` (GetUniqueId) — or `name`\nplus the track it sits on. Track defaults are video/1.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"effectsArguments","type":"object"},"name":"effects","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"effectsOutput","type":"object"}},{"description":"Copy clip attributes between timeline items (Resolve 21.1.2+).\n\n`TimelineItem.CopyAttributes` is the API behind Edit-page Paste Attributes.\nIt is what makes a per-camera look repeatable: grade one clip, then push\nthe same attributes onto every other clip of that camera.\n\nActions:\n  options() -> {groups}\n    — the full option vocabulary, grouped, from Resolve's own type stubs.\n  copy(source_id?, source_name?, target_ids?, target_names?, options,\n       copy_all_video?, copy_all_audio?, track_type?, track_index?)\n    -> {success, copied_to, options_used}\n    — copy attributes from one source item onto one or more targets.\n      `options` is a dict of the flags from options(); a true value means\n      copy that attribute. Shorthands:\n        copy_all_video=true -> allVideoAttributes\n        copy_all_audio=true -> allAudioAttributes\n      Common per-camera case:\n        {\"colorCorrection\": true, \"allZoomAttributes\": true,\n         \"allCropAttributes\": true, \"videoPlugins\": true}\n  read(item_id?|name?, track_type?, track_index?) -> {attributes}\n    — the readable video attributes of an item (position, zoom, crop,\n      opacity, rotation, composition mode), so you can see what a copy\n      would carry.\n\nNotes:\n  - Targets are addressed by `target_ids` (GetUniqueId list) or\n    `target_names` (exact names on one track). Pick one form.\n  - CopyAttributes needs the source and targets on the SAME timeline.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"clip_attrsArguments","type":"object"},"name":"clip_attrs","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"clip_attrsOutput","type":"object"}},{"description":"Health check for the resolve-ext server and its Resolve connection.\n\nReports whether Resolve is reachable, which product/version is live,\nwhether a project is open, and which of this server's surfaces are\nusable on that build.\n","inputSchema":{"properties":{},"title":"resolve_ext_statusArguments","type":"object"},"name":"resolve_ext_status","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"resolve_ext_statusOutput","type":"object"}},{"description":"Inspect and change clip placement, handle offsets and linked audio.\n\nEvery write below was re-measured on **DaVinci Resolve Studio 21.2.0.6**.\nAn earlier release recorded SetPosition / MoveItems as returning False for\nevery input and SetLeftOffset as destructive; both readings were withdrawn.\nThe destructive result came from a timeline whose StartFrame/EndFrame\ncontradicted its contents (duration 0 while still holding clips) — see\nissue #336 upstream. On a timeline with consistent metadata all three work.\n\nActions:\n  get(item_id?|name?, track_type?, track_index?) -> {position, left_offset,\n                                                     right_offset, start, end}\n    — where an item sits and how many frames of handle it offers. This is\n      the read you need before deciding a trim. READ-ONLY, safe.\n  set(start_frame?|new_track_index?, move_linked?) -> {position}\n    — TimelineItem.SetPosition. Measured: a clip at 86400 moved to 86800,\n      confirmed by GetPosition and GetStart.\n  move(items=[{item_id|name, track_index?, start_frame?}], move_linked?)\n    -> {results}\n    — one or more items in a single call, each with its own readback.\n  set_offset(left?|right?, update_linked_items?) -> {before, after}\n    — TimelineItem.SetLeftOffset / SetRightOffset set the HEAD or TAIL trim\n      of the clip, in frames: `left=n` makes the clip begin n frames into\n      its source. Measured on a clip at 86400 with source range 0–71:\n      left=5 gave start 86405, source_start 5, duration 67. So a POSITIVE\n      left offset TRIMS the head and the start moves LATER; a negative one\n      extends into the head handle and returns False when no handle is left\n      (source_start cannot go below 0 — measured). `right` behaves\n      symmetrically at the tail. Both readbacks are returned so the effect\n      is always visible, and the call is reversed by setting the offset\n      back to the previous value.\n  j_l_cut(offset_frames, item_id?|name?, …) -> {…}\n    — the J-cut / L-cut primitive: shift ONLY the audio of a linked clip\n      relative to its picture, using Timeline.MoveItems with\n      moveLinkedItems=False. The pair stays linked and the offset persists.\n      Negative offset_frames starts the audio earlier than the picture\n      (J-cut — the next sound leads the image); positive starts it later\n      (L-cut — the sound outlasts the image). The default for interviews,\n      docs and weddings. Needs a clip whose audio is on the timeline:\n      appending with mediaType=1 puts VIDEO ONLY on the timeline and leaves\n      nothing to offset, so append without mediaType to bring the audio.\n  enabled() -> {enabled}\n    — read the timeline's enabled state. Setting it (enabled=true/false)\n      works but turns the timeline non-current, so later calls report\n      'No current timeline' until it is switched back in the GUI.\n  delete_gaps() -> {items_before, items_after, starts_before, starts_after}\n    — closes the gaps between clips so they sit back to back. Verified\n      working on a timeline whose StartFrame/EndFrame agree with its\n      contents; on a contradictory timeline it honestly reports that\n      nothing moved and why.\n\nAddressing: `item_id` (GetUniqueId) or `name` on a track. Track defaults\nvideo/1. Frame numbers are absolute timeline frames, not timecode.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"clip_positionArguments","type":"object"},"name":"clip_position","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"clip_positionOutput","type":"object"}},{"description":"Export a frame as a still — from a timeline, a clip, or the media pool.\n\nResolve 21.1.2 added ExportFrame on Timeline, TimelineItem and\nMediaPoolItem. The upstream server's frame capture goes through a render\nor a Gallery still; this is the direct call.\n\nActions:\n  item(item_id?|name?, frame_offset?, output_type?, file_path?, format?,\n       max_dimension?, track_type?, track_index?)\n    — TimelineItem.ExportFrame. **This is the one that works.** Offset is\n      0-based from the ITEM start and must be < the item's duration\n      (verified: 0..119 succeed on a 120-frame item, 120+ is refused).\n  media(clip_id, frame_offset?, output_type?, file_path?, format?,\n        max_dimension?)\n    — MediaPoolItem.ExportFrame. Also verified working; offset is 0-based\n      from the SOURCE start, ignoring the timeline.\n  timeline(frame_offset, …)\n    — Timeline.ExportFrame. Offset is **0-based from the TIMELINE start**\n      (`StartFrame`), valid `0 .. (EndFrame - StartFrame - 1)`.\n      Verified on 21.1.2.10 against a 480-frame timeline: offsets 0..479\n      succeed, 480 is refused with 'frameOffset is out of range'.\n      An absolute frame (e.g. the value from `GetStartFrame()`) is ALWAYS\n      refused, which reads like a failure but is correct behaviour. An\n      earlier release documented that rejection as a defect; that was a\n      wrong measurement on an empty timeline, corrected here.\n\nParameters:\n  output_type  'file' (needs file_path) or 'encodedString' (default).\n  file_path    Output path; format is inferred from the extension.\n  format       'jpg' (default) or 'png' — only for output_type\n               'encodedString'.\n  max_dimension  Cap the longer edge in pixels (default 0 = full size).\n  quality      JPEG quality 1-100 (default 100).\n  roi_x/roi_y/roi_width/roi_height  Normalised region of interest\n               (0..1, fractions of the frame; default the whole frame).\n               New in 21.2 — crop to a region without a render. The\n               fractions are per-axis, so equal width/height is NOT a\n               square region on a non-square frame. Verified live on\n               21.2.0.6: roi 0.25/0.25/0.5/0.5 with max_dimension=512\n               returns a 512x288 still.\n\nReturns for output_type='file': {success, path, bytes}.\nReturns for 'encodedString': {saved_to} — the base64 is decoded and\nwritten to <server dir>/out/, with only a short prefix returned inline.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"export_frameArguments","type":"object"},"name":"export_frame","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"export_frameOutput","type":"object"}},{"description":"Folder hierarchy lookups the upstream server does not expose.\n\nActions:\n  parent_of_clip(clip_id) -> {name, id, path}\n    — which bin a media pool clip lives in (MediaPoolItem.GetParentFolder).\n  parent_of_folder(path?|folder_id?) -> {name, id, path} | {root: true}\n    — a folder's parent (Folder.GetParentFolder). The root folder has none.\n  path(clip_id?|folder_id?) -> {path, segments}\n    — the full \"Master/Sub/Bin\" path of a clip or folder.\n  find_clip(clip_id) -> {name, folder_path}\n    — locate a clip by id anywhere in the tree.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"folder_opsArguments","type":"object"},"name":"folder_ops","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"folder_opsOutput","type":"object"}},{"description":"Photo albums and their items (Resolve 21.1.2+).\n\nA photo album is the stills/photo counterpart of a timeline: an ordered set\nof photo items, each with its own grade, flags, rating and versions.\nMeasured on 21.1.2.10 this whole area works — 9/9 PhotoAlbum methods and\n20/20 PhotoAlbumItem methods answered.\n\nThe API is split across objects and the split is NOT documented: the album\n*listing* methods live on Project, while creating/adding lives on MediaPool,\nand Resolve itself answers none of them. This tool resolves the right object\nat call time, so it keeps working if a build moves them.\n\nAlbums:\n  list() -> {albums, count}\n  current() -> {album|None}\n  set_current(album_id?|name?) -> {success, album}\n  create(name) -> {album}\n  create_from_photos(name, clip_ids) -> {album}\n    — THE RELIABLE WAY to get photos into an album: VERIFIED working\n      (added 2 photos, read back). Prefer this over add_photos.\n  delete(album_ids?) -> {success, deleted}\n  rename(album_id?|name?, new_name) -> {success, album}\n  quick_export_presets() -> {presets}\n  render_settings(settings?) -> {settings}\n\nPhotos inside an album:\n  photos(album_id?|name?) -> {photos, count}\n  add_photos(clip_ids, album_id?|name?) -> {added, count}\n    — BROKEN on 21.1.2.10: AddToPhotoAlbum adds nothing and returns an\n      empty list. This action verifies by reading the album back and\n      reports the failure with the measurement instead of a false success.\n      Use create_from_photos instead (verified working).\n  remove_photos(photo_ids, album_id?|name?) -> {success, remaining}\n  current_item(album_id?|name?) -> {photo|None}\n\nPer-photo properties (address a photo by photo_id, or by name inside an\nalbum):\n  photo(photo_id|photo_name?, album_id?|name?) -> {photo}\n  rate(photo_id|photo_name?, stars) -> {success, rating}\n  flag(photo_id|photo_name?, color?|clear?) -> {success, flags}\n  clip_color(photo_id|photo_name?, color?|clear?) -> {success, clip_color}\n  versions(photo_id|photo_name?) -> {versions, current}\n  add_version(photo_id|photo_name?, version_name) -> {success, versions}\n  load_version(photo_id|photo_name?, version_name) -> {success}\n  delete_version(photo_id|photo_name?, version_name) -> {success}\n  copy_grade(source_photo_id|source_photo_name?, photo_ids) -> {success}\n  effects_list(photo_id|photo_name?) -> {effects, count}\n  effect_apply(photo_id|photo_name?, category, id) -> {effect}\n  effect_remove(photo_id|photo_name?, category, indices?) -> {success}\n  fusion_comps(photo_id|photo_name?) -> {comps, count}\n  fusion_add(photo_id|photo_name?) -> {success, comps}\n  stills(album_id?|name?, all_photos?) -> {success, grabbed}\n\nNotes:\n  - `clip_ids` are MediaPoolItem ids (see media_pool_item.get_name).\n  - Ratings are 0-5; the API silently accepts out-of-range values, so this\n    tool clamps and reports what actually came back.\n\nMeasured on Resolve 21.1.2.10:\n  WORKING  — 9/9 PhotoAlbum methods, 20/20 PhotoAlbumItem methods,\n             CreatePhotoAlbumFromPhotos (photos land and read back),\n             ratings/flags/versions persist, AddFusionComp on a photo.\n  BROKEN   — AddToPhotoAlbum adds nothing (four variants tried);\n             Graph.ResetAllNodeColors exists on photo graphs but not on\n             timeline clip graphs; MediaPoolItem.GetNodeGraph not callable;\n             a freshly created album is not automatically \"current\"\n             (this tool sets it).\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"photo_albumsArguments","type":"object"},"name":"photo_albums","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"photo_albumsOutput","type":"object"}},{"description":"Node graph inspection and labelling, on a clip or a photo (21.1.2+).\n\nVerified working on 21.1.2.10: GetNodeLabel, SetNodeLabel, GetNodeColor,\nSetNodeColor, SetNodeEnabled, GetNumNodes, ResetAllGrades, ResetAllNodeColors.\nGetNodeEnabled — the read side — was added in 21.2 and is verified there;\non an older build the call fails and the `enabled` key is simply omitted.\nSetLUT/GetLUT returned False/None in testing (a LUT path is required and\nmust exist) — the tool reports what it gets rather than assuming.\n\nTarget: pass `item_id`/`name` for a timeline clip, or `photo_id` for a photo\nalbum item. `clip_id` is accepted but NOT usable on 21.1.2.10:\nMediaPoolItem.GetNodeGraph is not callable there, while the timeline and\nphoto variants both work.\n\nActions:\n  info(item_id?|name?|photo_id?|clip_id?, track_type?, track_index?)\n    -> {num_nodes, nodes: [{index, label, color, enabled}]}\n  label(node_index, label, ...) -> {success, nodes}\n    — SetNodeLabel. Pass an empty string to clear.\n  color(node_index, color, ...) -> {success, nodes}\n    — SetNodeColor. Valid names: Orange, Apricot, Yellow, Lime, Olive,\n      Green, Teal, Navy, Blue, Purple, Violet, Pink, Tan, Beige, Brown,\n      Chocolate. An empty string clears the color.\n  enable(node_index, enabled, ...) -> {success, nodes}\n  tools(node_index, ...) -> {tools}\n    — which Fusion/OFX tools sit in that node.\n  lut(node_index, lut_path?, ...) -> {success, lut}\n    — read, or set when lut_path is given (Resolve's relative LUT path).\n  cache(node_index, mode?, ...) -> {success, cache_mode}\n  reset_colors(...) -> {success}\n  reset_grades(...) -> {success}   — destructive: clears the whole grade.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"node_graphArguments","type":"object"},"name":"node_graph","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"node_graphOutput","type":"object"}},{"description":"Project-level gaps: render presets, audio render formats, transcription.\n\nThree surfaces the mainstream servers do not implement, all verified\npresent on Resolve 21.1.2.10 by calling them (the type stubs list them, but\na stub only says a name exists — see CONTRIBUTING.md).\n\nRender presets:\n  render_presets() -> {presets}\n    — GetRenderPresetList. Verified: returns the real list.\n  update_render_preset(preset_name) -> {success, preset}\n    — UpdateRenderPreset: overwrite a saved preset with the CURRENT render\n      settings. MEASURED on 21.1.2.10: returns False for the 37 factory\n      presets GetRenderPresetList reports (e.g. 'H.264 Master'), so this\n      only has a chance against a preset saved from the Render page in the\n      GUI. Project.SaveRenderPreset does NOT exist in the API, so a preset\n      cannot be created from here to test with. Treat as GUI-dependent.\n  quick_export_enable(preset_name, enabled) -> {success}\n    — SetQuickExportEnabledForRenderPreset. Same limitation: False for\n      factory presets on this build.\n\nPlayback frame rate (21.2):\n  playback_frame_rate() -> {timeline_playback_frame_rate, timeline_frame_rate}\n  set_playback_frame_rate(rate) -> {success, timeline_playback_frame_rate, ...}\n    — Project.SetSetting('timelinePlaybackFrameRate'), new in 21.2 and\n      verified there (set '25' -> read back '25'). The mainstream server\n      has this on record as returning False for every value form; that\n      measurement predates 21.2.\n\nExtras Download Manager (21.2):\n  extras_list() -> {count, packages}\n    — resolve.GetExtrasPackages: the optional packages (mostly AI models)\n      with status, progress and size. Verified on 21.2.0.6 (6 packages).\n  extras_install(name) / extras_uninstall(name) -> {success, queued}\n    — queues the download or the removal, by the entry's `name`. This\n      DOWNLOADS from Blackmagic (or cancels a running download) — it is not\n      a read. Poll extras_list for status and progress.\n\nAudio render formats:\n  audio_formats() -> {formats}\n    — GetAudioRenderFormats: {display name -> file extension}.\n  audio_codecs(format_extension) -> {codecs}\n    — GetAudioRenderCodecs: {codec description -> codec name} for a format\n      extension such as 'wav', 'mov', 'mxf'.\n\nTranscription (a clip's speech-to-text content):\n  transcription(clip_id, use_nested?) -> {transcription}\n    — GetTranscription. `use_nested` reads a nested timeline's transcript.\n  set_transcription(clip_id, transcription) -> {success, verified}\n    — SetTranscription. REPLACES an existing transcript. MEASURED on\n      21.1.2.10: returns False for a PNG still AND for a real video clip\n      that had no transcript, with both '01:00:00:00' and '00:00:00:00'\n      start timecodes — it appears unable to create a transcript where none\n      exists. Produce one in the Edit page (AI Transcription) first, then\n      this can replace it. The shape is:\n        {language: \"en\", segments: [{start: \"01:00:02:05\",\n                                     end:   \"01:00:04:10\",\n                                     text:  \"hello there\",\n                                     speaker: \"Name\" | None}, ...]}\n      Timecodes are absolute strings. The tool re-reads the clip afterwards\n      and reports whether the new text actually landed.\n\nAlso reports which of these the running Resolve build answers at all —\ncapability here varies by build, so nothing is assumed.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"project_extrasArguments","type":"object"},"name":"project_extras","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"project_extrasOutput","type":"object"}},{"description":"Lay out a multi-camera comparison timeline (Insta360 grid / split views).\n\nReproduces the camera-comparison workflow this project has been running as\nloose scripts, with the position bug fixed.\n\n**The bug worth knowing:** those scripts set the image position with\n`SetProperty(\"PositionX\", …)` / `\"PositionY\"`. MEASURED on 21.1.2.10 those\nkeys return **False and are silently ignored** — `GetProperty` gives back\n`False` too. The real keys are **`Pan`** (x, +right) and **`Tilt`** (y,\n+up), in pixels. Zoom worked in those scripts; positioning never did. This\ntool uses Pan/Tilt and verifies each write by reading it back.\n\nCamera detection from the clip name, longest prefix first:\n\n  ace*   -> Insta360 AcePro       (marker Orange)\n  go*    -> Insta360 Go Ultra     (marker Green)\n  luna*  -> Insta360 Luna Ultra   (marker Cyan)\n  x*     -> Insta360 X5           (marker Blue)\n  vid_*  -> Handy                 (marker Gray)\n             (an Android file, e.g. VID_20260614_170228.mp4)\n\nActions:\n  detect(track_type?, track_index?) -> {clips: [{name, id, camera}], unknown}\n    — what this timeline holds and which camera each clip is. Run this\n      first: it tells you whether the names match the convention.\n  grid_2x2(track_type?, track_index?, scale?, verify?)\n    -> {applied, skipped, layout}\n    — place the four cameras in a 2x2 quadrant grid. Quadrant centres are\n      at ±25 % of each axis; default scale 0.5.\n  split_h / split_v(track_type?, track_index?, scale?)\n    -> {applied, layout}\n    — two-up side by side (left/right) or stacked (top/bottom).\n  layout(assignments, track_type?, track_index?, scale?)\n    -> {applied, results}\n    — explicit control. assignments maps a clip_id (or camera name) to\n      {x?, y?, scale?}, where x/y are fractions of the timeline raster\n      (+x right, +y up) and scale multiplies the 1.0 zoom.\n  fullframe(clip_ids?|cameras?, track_type?, track_index?)\n    -> {reset}\n    — back to 1.0 zoom and centred, for the \"phone as full picture\" clip.\n  markers(track_type?, track_index?, duration_from_clip?)\n    -> {added, by_camera, markers_in_timeline, failed?}\n    — timeline markers naming each clip's camera, coloured per camera.\n      `added` and `markers_in_timeline` are both reported so the caller can\n      see they agree. LIMITATION, measured on 21.1.2.10: a marker on the\n      clip at timeline position 0 cannot be placed — neither the relative\n      frame (0) nor the absolute one (StartFrame + 0) is accepted, while\n      every other clip answers. Those clips are listed in `failed` instead\n      of being silently skipped.\n  sort_to_bins(folder_name?, recursive?, prefix?)\n    -> {moved, bins, skipped}\n    — file clips into per-camera bins by their name prefix. `folder_name`\n      names an existing folder to sort inside; without it the media pool\n      root is used. Bins are created on demand.\n  build_timeline(name?, cameras?, scene_gap_frames?, sync_at?)\n    -> {timeline, placed, by_camera}\n    — build the multi-track comparison: one video track per camera, each\n      scene's clips stacked at the same frame so they play side by side.\n      `cameras` limits which cameras take part. `scene_gap_frames`\n      (default 0) inserts a gap between scenes; `sync_at` (default 0) is\n      the frame the first scene starts on.\n  read(track_type?, track_index?) -> {clips: [{name, camera, zoom, pan, tilt}]}\n    — the current transform of every clip, so you can see what a call did.\n\nNote on the media-pool API, measured: AddSubFolder and MoveClips live on\n**MediaPool**, not on Folder — `Folder.AddSubFolder` and `Folder.MoveClips`\ndo not exist (the same split as the photo-album API). MoveClips was\nverified to actually relocate the clip, not merely return True.\n\nEverything reports what actually happened: each SetProperty is read back,\nand a write that does not stick is counted as a failure rather than a\nsuccess.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"camera_comparisonArguments","type":"object"},"name":"camera_comparison","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"camera_comparisonOutput","type":"object"}},{"description":"Render several frames into ONE labelled grid image (Resolve 21.2+).\n\nThe upstream server has no coverage for the 21.2 ExportThumbnails API.\nResolve composites the frames you name into a single sheet, fills the grid\nleft-to-right/top-to-bottom in the order given, and labels each cell — so a\nwhole look across a clip reads back in one image instead of N stills. This\nis the natural tool for camera-comparison and QC passes.\n\nActions (frames are 0-based offsets — from the item's start for item/media,\nfrom the timeline start for timeline; album uses 1-based photo positions):\n  item(item_id?|name?, frames, track_type?, track_index?, …)\n  timeline(frames, …)\n  media(clip_id, frames, …)\n  album(album_id?|album_name?, frames, …)\n\nframes  a list of ints, or of {frameOffset, label} dicts to caption cells\n        yourself (e.g. a timecode or clip name). Verified live on 21.2.0.6:\n        [0, 30, 60] -> a 3-row sheet; {frameOffset,label} dicts are honoured.\noutput_type  'file' (needs file_path, extension decides the format) or\n             'encodedString' (default; base64 decoded to <server dir>/out/).\nformat       'jpg' (default) or 'png' — only for output_type 'encodedString'.\nmax_dimension  Caps the longer edge of the WHOLE sheet (not one cell), so\n             more frames means smaller cells (default 0 = no scaling).\nquality      JPEG quality 1-100 (default 100).\n\nReturns {success, target, sheet:{width,height,columns,rows,cellWidth,\ncellHeight}, path|saved_to, bytes}.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"thumbnailsArguments","type":"object"},"name":"thumbnails","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"thumbnailsOutput","type":"object"}},{"description":"Automatic colour on a timeline clip (Resolve 21.2+).\n\nMeasured live on 21.2.0.6: ApplyAutoColor() applies a grade and flips the\nauto-colour flag ON; GetAutoColorEnabled() reports it; ClearAutoColor()\nremoves the applied grade. SetAutoColorEnabled() only toggles a grade a\nprevious ApplyAutoColor() already made, so calling it FIRST legitimately\nreturns False — that is the documented behaviour, not a failure.\n\n**The Color page must be showing.** On Edit the identical calls return\nFalse and change nothing (measured). This tool switches to Color itself\nand reports `page_switched_from` when it did.\n\ntarget='item' (default) acts on a timeline clip; target='photo' acts on a\nPhotoAlbumItem (21.2 added the same methods to both) — identify it with\nphoto_id, or photo_name plus album_id/album_name.\n\nActions:\n  apply(item_id?|name?, track_type?, track_index?)\n    -> {success, applied, auto_color_enabled}\n  status(item_id?|name?, …) -> {success, auto_color_enabled}\n  enable | disable(item_id?|name?, …)\n    -> {success, changed, auto_color_enabled}\n  clear(item_id?|name?, …) -> {success, cleared}\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"auto_colorArguments","type":"object"},"name":"auto_color","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"auto_colorOutput","type":"object"}},{"description":"Read or write the ASC CDL of a timeline clip's node (Resolve 21.2+).\n\nGetCDL(node_index) returns the CDL equivalent of the node's primaries;\nSetCDL applies one. Measured live on 21.2.0.6: a set/read round-trip\nreturns exactly the values written. GetCDL REQUIRES the node index —\ncalling it without one returns None (which reads like an empty result but\nis just a missing argument).\n\ntarget='item' (default) acts on a timeline clip; target='photo' acts on a\nPhotoAlbumItem (21.2 added GetCDL/SetCDL to both) — identify it with\nphoto_id, or photo_name plus album_id/album_name.\n\nActions:\n  get(item_id?|name?, node_index?, track_type?, track_index?) -> {cdl}\n  set(item_id?|name?, node_index?, slope?, offset?, power?, saturation?,\n      track_type?, track_index?) -> {success, applied, cdl}\n\nCDL values are space-separated RGB strings, e.g. slope=\"1.1 1.0 0.9\" and\noffset=\"0.0 0.0 0.0\"; saturation is a float (1.0 = neutral).\n\nYou may pass any subset of slope/offset/power/saturation: the tool reads\nthe node's current CDL and overlays what you gave. That matters because\nSetCDL itself needs ALL FOUR keys — a partial dict returns False and changes\nnothing (measured on 21.2.0.6).\n\n**The Color page must be showing** — on Edit SetCDL returns False and the\ngrade is unchanged (measured on 21.2.0.6). This tool switches to Color\nitself and reports `page_switched_from` when it did.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"cdlArguments","type":"object"},"name":"cdl","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"cdlOutput","type":"object"}},{"description":"Status of Resolve's asynchronous jobs (21.1+).\n\nSince 21.1 the analysis APIs are non-blocking: the call queues the job and\nyou poll a status getter. Neither the upstream server nor this one exposed\nthose getters, so a caller could start a transcription or a scene-cut\nanalysis and never learn whether it finished. This closes that gap.\n\nEvery getter returns a dict with `JobStatus` and `CompletionPercentage`;\nthe analysis ones add `CurrentClipIndex` or `AnalysisSpeed`, and the\nquick-export one adds `TimeTakenToRenderInMs`. A `null` entry means this\nbuild does not answer that getter (they are 21.1+).\n\nActions:\n  async_status() -> {transcribe_audio, analyze_for_slate, smart_reframe,\n                     detect_scene_cuts, create_subtitles_from_audio,\n                     render_with_quick_export}\n  render_job(job_id) -> {job_id, status}\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"jobsArguments","type":"object"},"name":"jobs","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"jobsOutput","type":"object"}},{"description":"MediaStorage Clone Tool — copy a directory tree of media (21.1+).\n\nThe upstream server has no coverage for StartCloneMedia / StopCloneMedia /\nGetCloneStatus / SetCloneToolSettings, so a scripted media migration had no\nroute at all. The copy runs in the BACKGROUND: `start` returns as soon as\nthe job is queued, so poll `status` until `JobStatus` is `Complete`.\n\nActions:\n  status() -> {job_status, completion_percentage, error}\n    — GetCloneStatus. With no job ever started, JobStatus is `Complete`.\n  settings(preserve_folder_name?, checksum_type?) -> {settings, status}\n    — SetCloneToolSettings. There is no getter for these options, so this\n      reports what it just set (or `null` when called with no arguments).\n      checksum_type: none | filesize | crc32 | md5 | sha256 | sha512 |\n      xxh64 (mapped to resolve.CLONE_CHECKSUM_TYPE_*).\n  start(source_dir, target_dirs, preserve_folder_name?, checksum_type?)\n    -> {source, targets, queued, status}\n    — StartCloneMedia. target_dirs is one path or a list of paths. Pass\n      either slash style: on Windows Resolve rejects forward slashes with\n      `False` and copies nothing (measured), so the tool converts.\n      A checksum manifest (`filesizes.txt` etc.) lands next to the copy.\n  stop() -> {success, status}\n    — StopCloneMedia; returns False when no clone job is running.\n","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"}},"required":["action"],"title":"clone_mediaArguments","type":"object"},"name":"clone_media","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"clone_mediaOutput","type":"object"}}]}}}
