Sheet kit command

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))
Changes the document
no

Parameters

Parameters of file.render
NameTypeRequiredDescription
maxSizeintegernothe longest side in pixels, 16 to 8192; a larger picture is brought down to it
scalenumbernopixels per point, more than 0 and at most 4 (default 1)
targetobjectnothe 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

Result of file.render
NameTypeRequiredDescription
cappedbooleanno
cellsintegerno
heightintegerno
maxCellsintegerno
mimeTypestringno
pngstringno
rangestringno
scalenumberno
sheetstringno
sheetIdstringno
usedRangestringno
widthintegerno
Result JSON Schema
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/[email protected] and the kit itself (sheet_commands through @kition/[email protected], built from KitionAI/kition-sheet@82f13b2). As data: commands.jsonl.