# VesselCapabilityParameter
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/vesselcapabilityparameter/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

Defined in: [packages/protocol/src/lib/read-capability-snapshot.ts:35](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/read-capability-snapshot.ts#L35)

A parameter an action accepts, as the model sees it: what to call it, what it means, what kind of value it takes, and — when the vessel declared an enumerated set — which values it will accept.

`options` and `optionsOmitted` combine into exactly four states:

-   neither present — unconstrained: any value of `type` is acceptable.
-   `options` only — the complete set of values the vessel declared.
-   both present — a partial set: everything listed is valid, but at least one declared value had no faithful text form and is missing.
-   `optionsOmitted` only — values exist but none could be shown: the set blew the projection budget, or nothing in it could be rendered.

In the two omitted states `type` is the only remaining signal about the values that aren’t listed, which is why it is always projected.

## Properties

### description

> `readonly` **description**: `string`

Defined in: [packages/protocol/src/lib/read-capability-snapshot.ts:37](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/read-capability-snapshot.ts#L37)

* * *

### name

> `readonly` **name**: `string`

Defined in: [packages/protocol/src/lib/read-capability-snapshot.ts:36](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/read-capability-snapshot.ts#L36)

* * *

### options?

> `readonly` `optional` **options?**: `NonEmptyArray`<`string`\>

Defined in: [packages/protocol/src/lib/read-capability-snapshot.ts:59](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/read-capability-snapshot.ts#L59)

The values the vessel declared for this parameter, unioned across every variant that declares the action — so this is a _superset_, not a per-variant whitelist: it can list values the variant currently on screen would reject. Read it as “values this parameter can ever take”, never as permission to invoke; the vessel stays the authority on what its current variant accepts.

Absence means either “any value of `type`” or “declared values that couldn’t be listed” — check [VesselCapabilityParameter.optionsOmitted](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/vesselcapabilityparameter/#optionsomitted) to tell those apart. Never empty: an empty list would read as “no valid values exist”.

* * *

### optionsOmitted?

> `readonly` `optional` **optionsOmitted?**: `true`

Defined in: [packages/protocol/src/lib/read-capability-snapshot.ts:72](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/read-capability-snapshot.ts#L72)

Set when at least one value the vessel declared is missing from `options` — either the whole set exceeded the projection budget (so it was omitted rather than truncated, and `options` is absent) or individual values had no faithful text form and were dropped (so `options` holds the rest). Either way `options`, when present, is a subset rather than the full set.

Distinguishes that from “any value of that kind” — without it a parameter whose values couldn’t be listed is indistinguishable from an unconstrained one, and the model is told anything goes.

* * *

### type

> `readonly` **type**: `"string"` | `"number"` | `"boolean"` | `"object"`

Defined in: [packages/protocol/src/lib/read-capability-snapshot.ts:45](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/read-capability-snapshot.ts#L45)

The kind of value this parameter takes, carried through unchanged from the vessel definition. Always present, including next to a complete `options` list: for an unconstrained parameter — or one whose options were omitted — it is the only thing telling the model whether to supply a string, a number, a boolean or an object.
