entangled_acquire_lock
Acquire an exclusive mutex lock on a file, directory, or critical task to stop multiple agent CLIs from editing it at once and causing merge conflicts. Locks auto-expire via ttl.
Instructions
[ENTANGLED] Acquires an exclusive mutex lock on a file, directory, or critical task. Prevents multiple agent CLIs from editing the same file concurrently and causing merge conflicts. Locks automatically expire after ttl_seconds (default 30 minutes).
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": {
"resource_path": "<resource_path>",
"agent_id": "<agent_id>",
"task_description": "<task_description>"
},
"name": "entangled_acquire_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| ttl_seconds | No | ||
| resource_path | Yes | ||
| task_description | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |