file_lock_acquire
Acquires an advisory file lock to prevent concurrent edits by multiple agents. Returns success or the current holder if locked; locks auto-expire to avoid deadlocks.
Instructions
Acquire an advisory file lock to prevent two agents editing the same file concurrently. Returns ok:true on success, or ok:false with the current holder if already locked. Locks auto-expire (default 30min) so a crashed agent can't hold a lock forever. Path is normalized to absolute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl_sec | No | ||
| file_path | Yes | ||
| agent_name | No |