release
Release an exclusive lock on a resource so other sessions can claim it. Automatically detects ownership; use force to override if owner is missing.
Instructions
Release a previously-claimed lock so other sessions can claim it. Returns ok:true with action=released (or already_free if it wasn't claimed). If the lock is owned by someone else, returns ok:false with error=owner_mismatch — pass force=true to override (rare; usually a sign you should let the real owner finish). Owner is auto-detected the same way as claim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Release even if the lock is owned by a different session. Use only when you know the actual owner is gone and cleanup didn't happen automatically. | |
| owner | No | Explicit owner identifier. Omit to let mcp-locks auto-detect. Must match the current owner unless force=true. | |
| instance | Yes | Instance name to release (e.g. 'playwright2'). |