contract_get
Fetch a contract by name, ID, or unique prefix, including its current shape and all earlier versions.
Instructions
Fetch one contract in full by name, id or unique id prefix: its current shape and every earlier version. Use when a brief or contract_list names a contract you consume; to find contracts by path or kind use contract_list. not_found if there is none, and an ambiguous prefix is invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The contract's name, its id, or a unique prefix of the id. | |
| agent | Yes | Your stable agent name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ok. not_found: no such contract. invalid: an ambiguous id prefix. | |
| message | No | Human-readable detail, on most outcomes other than ok. | |
| contract | No | In full: id, name, kind, consumers, current (version, shape, notes, published_by, published_at), and history, oldest first. |