Sheet kit command
pivot.recommended
Recommended Pivot Tables
Suggests pivot table layouts for a source and answers them; with apply, creates the suggestion at that index.
- Kit
- Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
apply | integer | no | a position counted from 0 (the first is 0) |
destination | string | no | a cell in A1 notation, or "new" for a new sheet |
source | string | no | a range in A1 notation such as Sheet1!$A$1:$E$200, or a table name |
Call through sheet_run
text
sheet_run {
"path": "<file>.xlsx",
"steps": [{ "command": "pivot.recommended" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: apply, destination, source. sheet_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"apply": {
"description": "a position counted from 0 (the first is 0)",
"type": "integer"
},
"destination": {
"description": "a cell in A1 notation, or \"new\" for a new sheet",
"type": "string"
},
"source": {
"description": "a range in A1 notation such as Sheet1!$A$1:$E$200, or a table name",
"type": "string"
}
},
"returns": "suggestions [{index, title, rows, columns, values}]; with apply, creates that one",
"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.