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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>"
},
"name": "lock"
}
}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. |