Reserve files
reserve_filesReserve files to prevent conflicts when multiple agents edit the same code. Call before modifying files to coordinate parallel edits and avoid collisions.
Instructions
Purpose: Reserve files so agents can coordinate parallel edits. When to use: call before modifying files that another agent might also touch. Inputs: workspace_id, agent_name, file_paths, purpose, TTL, and optional override reason. Side effects: creates reservation rows and audit events. Output: reservation status and any conflicts. Failure modes: strict policies may reject conflicts unless an override reason is allowed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | Short reason for the reservation. | |
| agent_name | Yes | Name of the agent reserving the files. | |
| file_paths | Yes | Repo-relative file paths to reserve. | |
| ttl_minutes | No | Reservation lifetime in minutes; null means use storage defaults. | |
| workspace_id | Yes | Workspace UUID where files are being reserved. | |
| override_reason | No | Reason for overriding a conflict when policy permits overrides. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||