# ChartRequest
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/chartrequest/
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/request.ts:150](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/request.ts#L150)

Request from client to engine.

Message identity (`id`), session binding (`sessionId`), and timestamp live on the surrounding [ChartRequestMessage](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/chartrequestmessage/) envelope — this payload only carries the chart state and the reasons for the update.

## Properties

### context

> `readonly` **context**: `object`

Defined in: [packages/protocol/src/lib/request.ts:152](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/request.ts#L152)

#### chartDimensions

> `readonly` **chartDimensions**: [`ChartDimensions`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/chartdimensions/)

#### layoutMode

> `readonly` **layoutMode**: [`LayoutMode`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/layoutmode/)

#### updateReasons

> `readonly` **updateReasons**: readonly [`UpdateReason`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/updatereason/)\[\]

Reasons that triggered this update (can be batched)

* * *

### instances

> `readonly` **instances**: readonly [`VesselInstanceSnapshot`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/vesselinstancesnapshot/)\[\]

Defined in: [packages/protocol/src/lib/request.ts:159](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/request.ts#L159)

All Vessel instances with their current variant state

* * *

### layout

> `readonly` **layout**: [`GridLayout`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/gridlayout/) | [`TilingLayout`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/tilinglayout/)

Defined in: [packages/protocol/src/lib/request.ts:163](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/request.ts#L163)

Current layout (mode-specific)

* * *

### skipReply?

> `readonly` `optional` **skipReply?**: `boolean`

Defined in: [packages/protocol/src/lib/request.ts:174](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/request.ts#L174)

When `true`, the caller writes the user-facing reply itself, so the Planner may omit `userMessage` or return a [NeedsClarification](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/needsclarification/) that asks the user a question, optionally with the layout and Actions it could already settle. Absent means `false`: the response carries a `userMessage`. Clients rendering the reply leave it unset. `Engine.handle` ships a replyless response with `userMessage` absent. It still refuses a [NeedsClarification](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/needsclarification/) result with a `ValidationError` on field `skipReply`, because a `chart_response` has no shape for a question.

* * *

### type

> `readonly` **type**: `"chart_request"`

Defined in: [packages/protocol/src/lib/request.ts:151](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/request.ts#L151)

* * *

### vessels

> `readonly` **vessels**: readonly `object`\[\]

Defined in: [packages/protocol/src/lib/request.ts:161](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/request.ts#L161)

All registered Vessel definitions
