---
title: "file.render: Render Sheet Range — Sheet kit command — Kition"
description: "Answers a picture of one sheet's range with its row and column headings, the agent's preview: `target.sheet` (a name or `sheet:<id>`; default the first sheet, never the active one) and `target.range` (A1; default the used range, cut to 5000 cells and said so in `capped`), `scale` pixels per point (default 1, at most 4) brought down to `maxSize`. Changes nothing; the same call answers the same bytes."
canonical: "https://developer.kition.ai/docs/kits/sheet/commands/file.render"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/sheet/commands/file.render](https://developer.kition.ai/docs/kits/sheet/commands/file.render)

# file.render

**Render Sheet Range.** Answers a picture of one sheet's range with its row and column headings, the agent's preview: `target.sheet` (a name or `sheet:<id>`; default the first sheet, never the active one) and `target.range` (A1; default the used range, cut to 5000 cells and said so in `capped`), `scale` pixels per point (default 1, at most 4) brought down to `maxSize`. Changes nothing; the same call answers the same bytes.

- Kit: Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb)); reference: [Sheet kit commands](https://developer.kition.ai/docs/kits/sheet.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `maxSize` | `integer` | no | the longest side in pixels, 16 to 8192; a larger picture is brought down to it |
| `scale` | `number` | no | pixels per point, more than 0 and at most 4 (default 1) |
| `target` | `object` | no | the view to draw: `sheet` and `range` |

## Call through sheet_run

```text
sheet_run {
  "path": "<file>.xlsx",
  "steps": [{ "command": "file.render" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `capped` | `boolean` | no |  |
| `cells` | `integer` | no |  |
| `height` | `integer` | no |  |
| `maxCells` | `integer` | no |  |
| `mimeType` | `string` | no |  |
| `png` | `string` | no |  |
| `range` | `string` | no |  |
| `scale` | `number` | no |  |
| `sheet` | `string` | no |  |
| `sheetId` | `string` | no |  |
| `usedRange` | `string` | no |  |
| `width` | `integer` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "capped": {
      "type": "boolean"
    },
    "cells": {
      "type": "integer"
    },
    "height": {
      "type": "integer"
    },
    "maxCells": {
      "type": "integer"
    },
    "mimeType": {
      "type": "string"
    },
    "png": {
      "type": "string"
    },
    "range": {
      "type": "string"
    },
    "scale": {
      "type": "number"
    },
    "sheet": {
      "type": "string"
    },
    "sheetId": {
      "type": "string"
    },
    "usedRange": {
      "type": "string"
    },
    "width": {
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "maxSize": {
      "description": "the longest side in pixels, 16 to 8192; a larger picture is brought down to it",
      "type": "integer"
    },
    "scale": {
      "description": "pixels per point, more than 0 and at most 4 (default 1)",
      "type": "number"
    },
    "target": {
      "additionalProperties": false,
      "description": "the view to draw: `sheet` and `range`",
      "properties": {
        "range": {
          "description": "a range in A1 notation, like `A1:D20` (default: the sheet's used range, cut to 5000 cells)",
          "type": "string"
        },
        "sheet": {
          "description": "a sheet's name or its tool id `sheet:<id>` as sheet_inspect lists it (default: the first sheet)",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/sheet-darwin-arm64@0.1.0 and the kit itself (sheet_commands through @kition/cli@0.1.1, built from KitionAI/kition-sheet@82f13b2).
