Run an edit op (deprecated)
run_opDEPRECATED since 2026-09-27, kept until at least 2026-10-27: the edit ops are split by cost between two tools, one for the free deterministic ops and one for the paid LLM re-authoring ops (invocableVia in the op catalogue names them). This alias routes each op to the tool that owns it and answers what that tool answers, plus a deprecated notice that names it.
Ops:
replan_scenes: Reorder the scenes (a permutation of indexes). Deterministic, $0. Args: order=[int...].rewrite_scene: Re-author one scene (script and visual) under a brief. LLM. Args: scene_index, brief (the WHOLE scene is re-authored under the brief).set_piece_fields: Set PIECE-level fields (production_score: silence_plan, music_intent, narrative_arc…), validated by the schema. Deterministic, $0. Args: fields (partial production_score: silence_plan, music_intent, narrative_arc, expected_total_duration_sec…; lists replace).set_scene_fields: Set concrete fields of one scene (narration, duration, silences, infographic data…), validated by the schema. Deterministic, $0. Args: scene_index, fields (partial scene object: narrator_text, direction_notes, pre_silence_sec, pause_after_sec, visual.duration_target_sec, visual.prompt, infographic.data, kinetic_caption…; nested dicts merge by key, null deletes; validated by the VBP schema).set_visual: Set a scene's visual type and/or visual prompt. Deterministic, $0. Args: scene_index, visual_type?, visual_prompt?.swap_voice: Change the voice (semantic attributes) of one scene or all of them. Deterministic, $0. Args: voice_spec={...} (semantic attributes only: timbre, cadence, accent, language, apparent_gender, voice_style — NOT a voice id: the concrete voice is a piece-level decision made when the piece is created; a scene has no voice pin of its own, for the human either), scene_index?.tighten_hook: Strengthen the opening hook (scene 0). LLM. Args: brief? (scene 0). Requires thewritescope. The deterministic ops are $0. Spends LLM budget only on the authoring ops (charged like a chat turn); the deterministic ops are $0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| args | Yes | Op arguments (see description). | |
| project_id | Yes | ||
| request_id | No | Optional: a caller-chosen key for this request (up to 64 characters). The same key returns the same job for 24 h; a new key runs it again. Without it, an identical call within 15 minutes is the same request. |