# The view

The actions of the view group, with their input fields and their names on every transport.

5 actions: 0 on the command line, 2 as MCP tools, 0 as HTTP endpoints and 5 in the page.

## view\.goto

**Go to slide.** Shows a slide in the viewer, the editor or the presenter.

| Field     | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| `slideId` | string | yes      |             |

* Command line: No CLI command.
* MCP tool: `deck_goto_slide`
* HTTP: No HTTP endpoint.
* Runs on: MCP, page.
* Changes the presentation: no.

## view\.mode

**View mode.** Switches between slide, grid and book mode.

| Field  | Type                        | Required | Description |
| ------ | --------------------------- | -------- | ----------- |
| `mode` | "slide" \| "grid" \| "book" | yes      |             |

* Command line: No CLI command.
* MCP tool: No MCP tool.
* HTTP: No HTTP endpoint.
* Runs on: page.
* Changes the presentation: no.

## view\.theme

**View theme.** Sets the theme of chrome and sheet together through the gt-theme key.

| Field   | Type              | Required | Description |
| ------- | ----------------- | -------- | ----------- |
| `theme` | "light" \| "dark" | yes      |             |

* Command line: No CLI command.
* MCP tool: No MCP tool.
* HTTP: No HTTP endpoint.
* Runs on: page.
* Changes the presentation: no.

## view\.present

**Present.** Enters or leaves present mode.

| Field | Type    | Required | Description |
| ----- | ------- | -------- | ----------- |
| `on`  | boolean | yes      |             |

* Command line: No CLI command.
* MCP tool: No MCP tool.
* HTTP: No HTTP endpoint.
* Runs on: page.
* Changes the presentation: no.

## view\.zoom

**Zoom.** Sets the stage scale in the editor, a factor of the sheet size from 0.25 to 16 or fit, keeping a named sheet point under the stage centre; the output reports the effective zoom and the scroll; a view action with no document field.

| Field    | Type            | Required | Description                                                                         |
| -------- | --------------- | -------- | ----------------------------------------------------------------------------------- |
| `zoom`   | number \| "fit" | yes      | A factor between 0.25 and 16 (25 to 1600 percent), or 'fit' for the stage's own fit |
| `center` | object          | no       | The sheet point kept under the stage centre; the sheet centre unless set            |

* Command line: No CLI command.
* MCP tool: `deck_set_zoom`
* HTTP: No HTTP endpoint.
* Runs on: MCP, page.
* Changes the presentation: no.
