claims_list
Check live leases before claiming a path: see who holds it and until when, or list all active claims. Use it to avoid conflicts and find expired-free paths.
Instructions
List live leases: by default yours plus any lease overlapping path, which is what a conflict check needs; all=true lists the whole board. Use before claim to see who holds a path and until when; for counts and daemon health use status. Expired leases are never listed. Newest first, 20 rows per page; pass next_before as before for older rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | List every live claim, not just yours and those overlapping `path`. | |
| path | No | Also include claims overlapping this path, whoever holds them. | |
| agent | Yes | Your stable agent name. | |
| limit | No | Rows to return (default 20, max 200), newest first. | |
| before | No | Only claims older than this cursor: an RFC 3339 timestamp or a previous response's `next_before`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Rows in this response. | |
| total | No | Rows that matched, across all pages. | |
| claims | No | id, owner, paths, reason, claimed_at, expires_at, ttl_secs. Expired claims are never listed. | |
| status | Yes | ok. invalid: bad input. | |
| message | No | Human-readable detail, on most outcomes other than ok. | |
| truncated | No | True when older rows were left out. | |
| next_before | No | Present when truncated: pass it back as before for the next older page. |