Claim library work
claim_library_workClaim up to twelve Librarian evidence packets to lease work, then renew, release, or cancel attempts with the returned work ID and attempt token.
Instructions
Lease Librarian evidence packets, or renew, release or cancel your current attempts. Use after list_library_work to acquire work; use submit_library_result to store an assignment. Claim returns up to twelve packets with attempt tokens. Renew/release/cancel require the work_id and attempt_token from that claim. Leases last 60-900 seconds, never beyond one hour from first claim; three attempts exhaust a row.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | claim acquires packets; renew extends your lease; release returns your attempt; cancel cancels it. Non-claim actions require work_id and attempt_token. | |
| reason | No | Human-readable explanation for the requested action or non-assignment outcome. | |
| run_id | No | Librarian run identifier from list_library_work; omission selects the service's default run where allowed. | |
| work_id | No | Work-row identifier returned by claim_library_work, distinct from the source item ID. | |
| client_id | Yes | Stable identifier for your Librarian client; use the same value through claim, renew and submit. | |
| max_items | No | Maximum single-item packets to lease in this claim. | |
| attempt_token | No | Opaque token for your current leased attempt; copy from claim_library_work and do not invent it. | |
| lease_seconds | No | Requested lease duration in seconds; renewal cannot extend past the attempt's absolute lifetime. |