claim
Acquire an exclusive or shared lock on a resource, optionally queuing if the lock is unavailable. Prevents conflicts when multiple agents need coordinated access.
Instructions
Atomically acquire (or queue for) a resource lock.
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": {
"agent_id": "<agent_id>",
"resource": "<resource>"
},
"name": "claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| note | No | ||
| wait | No | ||
| agent_id | Yes | ||
| resource | Yes | ||
| lease_seconds | No |