Start Labor Session
start_labor_sessionClock the signed-in worker in on a run they are committed to, as the start button on their my-work page does: a work session on one phase (setup, attendedRun or cleanup) of a committed labor plan starts now. Name the run by operationId, or by workOrder and operationCode (get_labor_work_day lists the worker's runs). phase defaults to the worker's only phase in the run. Refused when the plan changed or needs review, when the worker is not in that phase's crew, or while they already have a session running or time recorded ahead. Stop it with stop_labor_session. In-app only (User role; the account must be linked to a worker): a connector has no worker of its own. Preview first; the in-app assistant gets a confirm card.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "start_labor_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phase | No | setup, attendedRun or cleanup; defaults to your only phase in the run. | |
| 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 | ||
| session | No | ||
| committed | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |