ic_headsets_checkout
ActiveTool of Immersive Commons
Atomically claims a PICO unit for the calling user. Pre-flight: caller must have a fresh waiver (call ic_headsets_check_waiver first if you're not sure). Per-member NX lock prevents double-lending. Returns the new lend_id + due_back_at. Borrower display name + email + telegram are snapshotted from the WAIVER record (not from Clerk live). Args: { unit_id: 'IC1'..'IC8' }. Returns: { ok, lend_id, due_back_at }. Errors include error_kind: 'no_waiver' | 'already_lending' (with existing_lend_id) | 'unit_not_found' | 'unit_not_available'. Required scope: headsets:lend.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"unit_id"
],
"properties": {
"unit_id": {
"type": "string",
"maxLength": 16,
"minLength": 1,
"description": "Unit id, e.g. 'IC1'. Case-insensitive."
}
}
}Parent server
Immersive Commons
https://github.com/immersive-commons/ic-skills
1/7 registries