claim_path
Claim exclusive access to a file or folder path on the session bus. Fails immediately if another session holds the lock, allowing coordination. Locks expire after a configurable time.
Instructions
Cooperatively lock a path on the session bus before editing it. Fail-fast: if another live session holds the lock the claim is refused and the holder is returned; coordinate or pick another territory instead of retrying in a loop. Locks expire after ttl_seconds (default 900, max 3600) and die with their session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repo-relative or absolute path (file or folder) to lock. | |
| session_id | No | Session id acquiring the lock. Defaults to the current session. | |
| ttl_seconds | No | Lock lifetime in seconds (1-3600, default 900). |