Apply Labor Default
apply_labor_defaultRecalculate a run's labor draft from its operation's reviewed default, as the labor planner screen's apply-default does: the default's per-run and per-unit minutes become the draft's elapsed time and attendance, keeping its planned start. Only for a run that is not committed, not started and has no recorded time; the draft then awaits review, which committing it gives. Needs an enabled default (save_labor_default) and a reason for the plan's history. Name the run by operationId, or by workOrder and operationCode. Admin; operator credentials only. Preview first; the in-app assistant gets a confirm card.
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": {
"reason": "<reason>"
},
"name": "apply_labor_default"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why, for the plan's history: 1–1000 characters. | |
| 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. | |
| workOrder | No | The run's work order number, with operationCode. | |
| operationId | No | The run's operation id (GUID). | |
| operationCode | No | The run's operation code, with workOrder. | |
| 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 | ||
| request | No | ||
| committed | No | ||
| expiresAt | No | ||
| planVersion | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |