lease
Acquire, renew, release, or list named advisory locks with TTLs so concurrent agent sessions coordinate safely; renew before each protected step and wait for held locks when needed.
Instructions
Advisory locks by name: acquire, renew, release or list. A lease ends at its ttl (default 60 s) unless renewed, even while this session is offline, and another session may then take it: renew it (or list and check the holder and token) before every step it protects, and stop if that fails. wait: wait for a held lease, up to wait_s (default the ttl).
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": {
"action": "<action>"
},
"name": "lease"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| wait | No | ||
| ttl_s | No | ||
| action | Yes | ||
| wait_s | No |