lock_acquire
Acquire a named lock for an owner with a TTL so agents can take turns on shared files, devices, or jobs; existing live locks return the holder and release time, and held locks renew.
Instructions
Take a named lock for your owner label, for ttl_minutes. Use a lock when agents must take turns around one file, one device or one job. If a live lock with that name exists, you get an answer naming the holder and the time it frees. A lock you already hold is renewed. Expired locks free themselves. Fractional minutes are allowed for short locks.
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": {
"name": "<name>",
"owner": "<owner>"
},
"name": "lock_acquire"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| owner | Yes | ||
| ttl_minutes | No |