Update Recipe Draft
update_recipe_draftReplace an existing recipe draft with a retrieved authoring state, retaining unedited fields and source bytes. Provide expected_version to avoid stale overwrites; if rejected, reload the draft and reconcile changes.
Instructions
Replace authoring state using the version from get_recipe_draft. Retain every unedited field, including original priors and source bytes. Stale changes fail; reload and reconcile explicitly. Identical retries return the current draft. Does not publish or launch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| draft_id | Yes | ||
| snapshot | Yes | Lossless editor authoring state. Backend is authoritative; preserve unknown nested fields. Source bytes are copied into encrypted draft storage (10 MB source limit); metadata limit is 5 MB. No local filesystem paths or executable code. | |
| expected_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||