Start Production Run
start_production_runStart a production run: send 1–100 production work orders to work together, as the production screen's Send to work does. Each moves from readyForProduction to started under one new run number. Every work order must be a production work order, ready for production, not already in a run, with its pick lists and the work orders it depends on completed; one that is not refuses the whole run. Find candidates with list_work_orders status=readyForProduction type=production. Preview first; the preview lists each work order and its output. 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": {
"workOrderIds": "<workOrderIds>"
},
"name": "start_production_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| workOrderIds | Yes | Work order ids (GUIDs), from list_work_orders; 1–100, each once. | |
| 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 | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| productionRun | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |