Acquire Context Lock
acquire_lockAcquire a DB-backed lock on a file path (TTL 1–3600s, default 300). Costs 1¢ per attempt. Fails if another agent holds a live 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": {
"file_path": "<file_path>",
"agent_id": "<agent_id>"
},
"name": "acquire_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| agent_id | Yes | ||
| file_path | Yes | ||
| ttl_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |