contract_list
List contracts filtered by consumer path or kind, newest first. Use this to find what a path depends on when you are not claiming it, with pagination via next_before.
Instructions
List contracts, filtered by a consumer path or by kind, most recently published first. Use to find what a path depends on when you are not claiming it, since a claim's brief already lists them; shapes come from contract_get. Rows are compact, 20 rows per page; pass next_before as before for older rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Only contracts of this kind. | |
| path | No | Only contracts whose consumers overlap this path. | |
| agent | Yes | Your stable agent name. | |
| limit | No | Rows to return (default 20, max 200), most recently published first. | |
| before | No | Only contracts published before 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. | |
| status | Yes | ok. invalid: bad input. | |
| message | No | Human-readable detail, on most outcomes other than ok. | |
| contracts | No | Most recently published first, compact: id, name, kind, consumers, current version. Shapes via contract_get. | |
| 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. |