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
| 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
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 |
Result JSON Schema
{
"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
{
"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.