lock_lock_try
Attempt a non-blocking lock on a named resource. Returns immediately with acquisition status or current holder. Accepts optional owner identifier and time-to-live.
Instructions
[lock] Non-blocking lock attempt. Returns immediately with {acquired, held_by?}.
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>"
},
"name": "lock_lock_try"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| owner | No | ||
| ttl_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |