file_reserve
Reserve files or glob patterns to prevent conflicts between agents, with optional conflict-only checking and TTL-based expiry.
Instructions
Reserve files or glob patterns to prevent conflicts between agents. Use check_only=true to check for conflicts without reserving. Reservations expire after TTL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | No | Direct-v1 actor identity for the lease; mapped onto the internal agent field | |
| agent | No | Agent reserving the files (legacy advisory mode; direct-v1 also accepts actor) | |
| task_id | No | ||
| patterns | Yes | File paths or glob patterns to reserve (e.g. ['src/auth/**', 'package.json']) | |
| attempt_id | No | ||
| check_only | No | If true, only check for conflicts without creating reservations | |
| api_version | No | ||
| case_policy | No | ||
| claim_token | No | ||
| ttl_minutes | No | Reservation TTL in minutes (default 15) | |
| workspace_id | No | ||
| schema_version | No | ||
| idempotency_key | No | ||
| coordination_mode | No | ||
| expected_revision | No | Direct-v1 alias mapped onto expected_task_revision | |
| expected_task_revision | No | Expected direct task revision for direct-v1 CAS (direct-v1 also accepts expected_revision) |