Sheet kit command
workbook.statistics
Workbook Statistics
Answers counts for the active sheet and workbook: cells with data, formulas, sheets, tables, charts, comments and the last used cell.
- Kit
- Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
- Changes the document
- no
Parameters
None.
Call through sheet_run
text
sheet_run {
"path": "<file>.xlsx",
"steps": [{ "command": "workbook.statistics" }]
}The required parameters, with placeholders for their types: not a tested example. sheet_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
sheet | object | no | |
workbook | object | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"sheet": {
"additionalProperties": true,
"properties": {
"cellsWithData": {
"type": "number"
},
"charts": {
"type": "number"
},
"comments": {
"type": "number"
},
"endOfSheet": {
"type": "string"
},
"formulas": {
"type": "number"
},
"name": {
"type": "string"
},
"tables": {
"type": "number"
}
},
"type": "object"
},
"workbook": {
"additionalProperties": true,
"properties": {
"cellsWithData": {
"type": "number"
},
"charts": {
"type": "number"
},
"names": {
"type": "number"
},
"sheets": {
"type": "number"
},
"tables": {
"type": "number"
}
},
"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.