Commit workflow
commit_workflowCommit one approved workflow preview using its exact preview_hash and confirmed approval, blocking changed inputs from being saved without a fresh human review.
Instructions
Save one approved workflow preview through the single atomic birth writer. Requires the exact approval.confirmed true and the exact preview_hash of the preview the human reviewed: a bare preview id is insufficient. Approval attestations bind reviewed inputs; they do not prove a human reviewed them. This accepts no replacement inputs; a changed payload or relevant state requires a fresh preview and renewed approval. Do not generate a new preview as recovery from an uncertain commit — read get_workflow_preview first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"preview_id": "<preview_id>",
"approval": "<approval>"
},
"name": "commit_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| farm_id | No | Farm UUID; defaults to the active farm. | |
| approval | Yes | ||
| preview_id | Yes |