Direct the piece
directA natural-language instruction to the project's Director — the same chat turn the human director types: the planner reads the instruction, picks the ops (rewrite_scene / set_scene_fields / set_visual / swap_voice / replan_scenes / tighten_hook) and applies them to the staged draft. Suited to an editorial change that spans several fields or scenes («make scene 3 quote the source verbatim and shorten the closing»); a single exact op has its own tools. The call waits up to 60 s for the turn (50 of the 58 turns measured finished within that) and answers with the reply, the staged ops and the coherence report (outcome: completed_inline); a longer turn keeps running and the answer is its job (outcome: still_running, runId), which the project status reports by run_id. An identical call while the turn runs, or within 15 minutes after it succeeded, returns the same job, so a retry does not pay a second turn; request_id names a deliberately repeated request. One authoring turn at a time per project (authoring-in-progress). The staged draft becomes a version when it is committed. Requires write. Spends LLM budget (charged like a chat turn); a turn whose planned edits all fail stages nothing and is not charged (editOutcome: none_applied).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The instruction to the Director, in any language. | |
| quality | No | Reasoned authoring pass (slower, better). Default false. | |
| 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. | |
| active_scene_index | No | Optional: the scene the instruction refers to (0-based). |