advance_test_batch_mail
Sandbox keys only: simulate the facility one step (submitted → in_progress → completed). Completion marks every piece mailed and fires batch.completed to the agent's webhook, exactly as the facility would. With qr_event and piece it records a scan or a confirmation on that piece of a sandbox batch with QR codes instead, as if a phone scanned it, and the batch.piece.* webhooks fire. Live batches are advanced by the facility, never by the API.
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": {
"batch_id": "<batch_id>"
},
"name": "advance_test_batch_mail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| piece | No | The piece (1-based) for qr_event. | |
| batch_id | Yes | The batch's id (UUID). | |
| qr_event | No | Record a scan or a confirmation instead of advancing the batch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | batch, previous_status, sandbox true. |