Primitive
verb.contract
BETAShort name: contract
Version: 1.0.0
Returns a developer-facing contract for a verb: how to call it, the inputs it needs, the output shape, and an example invocation.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| verbId | objectId | true | Verb whose contract should be returned. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| contract | object | false | Result of buildVerbContract - declaration, inputs, outputs, steps (when composed), and the resolved primitive for primitive verbs. |
| usage | object | false | How to invoke the verb over HTTP: { method, path, bodyShape, exampleRequest, exampleResponse }. |
| verb | object | false | Identity block: { id, name, description, type, owner, isPublic }. |