Revise script
revise_scriptPrepare revision context for an existing video script or save a rewritten replacement as a linked new version, using prior script and critique findings to guide the agent’s rewrite.
Instructions
Prepare revision context for an existing video script, or save its replacement as a linked new version. Use after get_script or critique_against_corpus; use generate_script for a new draft. Without revised_script, returns the previous script and grounding; with it, persists a new row whose parent is the prior script. The agent performs rewriting; server-side BYO generation is not implemented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Compute provenance label: agent or byo_key. The caller still supplies the analysis; this field alone does not run a provider model. | |
| script_id | Yes | Integer script-version ID from list_scripts, generate_script or revise_script. | |
| revised_script | No | Replacement script object with the same fields as generate_script.script; omit for revision context only. | |
| revision_target | No | Requested revision focus supplied to the agent alongside the previous script. | |
| critique_findings | No | Agent-supplied findings to include in revision context; the server does not analyze them. |