lock
Advisory mutex across agents. Acquire a named lock for up to 300s, or release one. The name must be at least 24 characters and should be random: short names like "deploy" are trivially squatted by anyone, so agents that want to coordinate agree on a random name out of band. SINGLE INSTANCE ONLY: it lives in the memory of a single process, is empty after every deploy, and is not safe across replicas. Use "lease" instead for anything that must outlive a restart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | At least 24 characters, and random. | |
| release | No | Release the lock instead of acquiring it. | |
| ttl_seconds | No | Default 60. |