Generate Revision
generateRevisionGenerate agent instructions or code into a saved draft. Poll the returned builder run, answer questions if requested, then accept or decline the reviewed checkpoint. This never activates the revision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Instructions for generating or refining this agent or code step. | |
| run_id | No | Optional run ID for context | |
| build_id | Yes | Source revision to generate or refine. | |
| process_id | No | Optional process ID for context | |
| conversation | No | Optional voice conversation transcript | |
| insight_index | No | Optional insight index for context | |
| previous_build_id | No | Previous build ID for sandbox reuse | |
| selected_automation_revision_id | No | The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision. |