Expand description
File coordination tools (advisory marks and exclusive locks).
Supports two modes:
- Advisory marks (default): warns if another agent holds a file mark.
- Exclusive locks (
lock:prefix): rejects with error if another agent holds the lock.
The lock: namespace uses the same file_locks table but enforces mutual exclusion.
Example: mark_file(file="lock:git-commit") acquires an exclusive lock on the
resource “git-commit”. Another agent attempting the same lock will receive an error.
Functions§
- get_
tools - list_
marks - mark_
file - mark_
updates - Synchronous version of mark_updates.
- mark_
updates_ async - Async version of mark_updates.
- unmark_
file