lease_acquire
Acquire a named lease to coordinate shared work areas, extending your existing lease on retry. Leases auto-expire to prevent deadlocks.
Instructions
Try to take a named lease on a shared work area (non-blocking). Re-taking your own lease extends it. Leases expire on their own.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Stable and specific, like "file:src/api/routes.ts". | |
| project_id | No | Different project override. Use ONLY when the user explicitly asks for another project by name; otherwise stay in the current scope, even when results are empty. | |
| ttl_seconds | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| held_by | No | ||
| acquired | Yes | ||
| extended | No | ||
| expires_at | No | ||
| project_id | Yes |