---
title: "view.zoom: Zoom — Doc kit command — Kition"
description: "Sets the editor zoom to a percentage (10 to 500) or to page width, one page or multiple pages."
canonical: "https://developer.kition.ai/docs/kits/doc/commands/view.zoom"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/doc/commands/view.zoom](https://developer.kition.ai/docs/kits/doc/commands/view.zoom)

# view.zoom

**Zoom.** Sets the editor zoom to a percentage (10 to 500) or to page width, one page or multiple pages.

- Kit: Doc 0.1.0 (.docx); reference: [Doc kit commands](https://developer.kition.ai/docs/kits/doc.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `value` | `number \| "pageWidth" \| "onePage" \| "multiplePages"` | no |  |

## Call through doc_run

```text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "view.zoom" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `value`. doc_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `fit` | `string` | no |  |
| `zoom` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "fit": {
      "type": "string"
    },
    "zoom": {
      "type": "number"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "value": {
      "oneOf": [
        {
          "description": "percent from 10 to 500",
          "type": "number"
        },
        {
          "enum": [
            "pageWidth",
            "onePage",
            "multiplePages"
          ],
          "type": "string"
        }
      ]
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/doc-darwin-arm64@0.1.0 and the kit itself (doc_commands through @kition/cli@0.1.1, built from KitionAI/kition-doc@41e14a8).
