Change Work Order Status
transition_work_orderMove one work order to a new status: approve (waitingApproval to readyForProduction), mark_ready (open or onHold to readyForProduction), hold (open to onHold), or cancel (any work order not started, completed or cancelled; returns its reserved stock to available stock and frees its machines). A work order a manufacturing order generated is not cancelled here: cancel the manufacturing order. Starting and completing production use execute_manufacturing_step. Preview first; the preview shows the status change, the stock a cancel releases and the pick lists left open. Requires Write + manufacturing.execute on an unpinned operator credential. In-app assistants get a confirm card the user applies.
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": {
"workOrderId": "<workOrderId>",
"action": "<action>"
},
"name": "transition_work_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | approve, mark_ready, hold or cancel. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| workOrderId | Yes | Work order id (GUID), from list_work_orders. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| preview | No | ||
| expiresAt | No | ||
| transition | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |