Revise script
revise_scriptAI-rewrite a passage of the active script in the project's narrative
voice (the same in-editor revise the UI offers). selected_text must appear
verbatim in the script; omit it to revise the whole script. [SCENE: ...]
directions in range are preserved exactly, in place, unless the
instruction asks to change them. Synchronous — returns {revised_text},
which is NOT saved: splice it over selected_text (or replace the full
script) and call save_script to keep it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID, as returned by create_project or list_projects | |
| instruction | Yes | Natural-language edit instruction, e.g. "make the intro punchier" | |
| selected_text | No | Exact passage to rewrite; must appear verbatim in the active script. Omit to revise the whole script |