lease
Request or release repository path reservations so agents edit only covered files; conflicting requests queue FIFO, and globs can free all your reservations.
Instructions
Request or release leases on repository paths (globs: , * and ?; no braces). You may edit only what your leases cover; .git metadata needs a lease that names it. A request that conflicts with another agent's lease is queued (FIFO), and the response names the holders: then escalate(with: "path_owner"). release takes lease ids or globs ("*" releases all of yours).
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": {
"execution_id": "<execution_id>",
"agent_token": "<agent_token>",
"action": "<action>",
"paths": "<paths>"
},
"name": "lease"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default exclusive. Shared leases conflict only with exclusive ones. | |
| paths | Yes | ||
| action | Yes | ||
| reason | No | ||
| agent_token | Yes | The agent token join_execution returned (once). | |
| execution_id | Yes | The heads-down run (exe-…). |