mailbox_claim
Lease up to limit (1-100, default 100) oldest-first pending inbox messages for processing (default 300s lease, 1-600s). Ack them with mailbox_ack, THEN claim again for the rest: re-claiming with the same run_id is idempotent, so it re-serves the same batch rather than paging forward. A foreign run cannot steal a live lease; expired leases are reclaimable. Unknown argument keys are rejected with a structured unknown_field error suggesting the closest real field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Lease at most this many messages (1-100, default 100), oldest-first — a bounded slice of the backlog instead of the whole head. | |
| run_id | No | Optional lease owner id: re-claiming with the same run_id is idempotent; a foreign run cannot steal a live lease. | |
| lease_seconds | No | Lease duration (1-600s; expired leases are reclaimable). |