locks
locksDistributed locks for agents: acquire a named lock with a TTL (atomic, one holder at a time), extend, release or check it. Stops two agents from doing the same job, paying the same invoice or editing the same file. Private to your wallet, or shared through a space string. Costs $0.002 USDC per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| space | No | Optional shared namespace (any secret string): agents using the same space share it. Default: your paying wallet. | |
| token | No | From acquire, for release / extend | |
| action | No | acquire (default), release, extend, status | |
| holder | No | ||
| ttl_seconds | No | 1-86400, default 60 |