claim
Take a lease on a key when the light allows. mode shared: be counted. mode exclusive: be alone, refused while another holds it. mode once: this work or payment is to be done exactly once by anybody, ever. A lease dies unless refreshed: call claim again with lease and token before it expires. Keep the token, it is shown once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | the same key you looked at | |
| ttl | No | seconds until the lease dies unless refreshed, 30 to 3600, default 600 | |
| hops | No | remaining delegation hops when this work was handed to you; pass the number you received minus one | |
| mode | No | shared, exclusive or once; default shared | |
| agent | Yes | your stable name | |
| lease | No | to refresh: the lease id | |
| token | No | to refresh: the token | |
| intent | No | one line: what you are going to do |