Sheet kit command

app.commands

List Commands

Lists the sheet's commands with their ids, labels and parameter notes, optionally filtered by a search word.

Kit
Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
Changes the document
no

Parameters

Parameters of app.commands
NameTypeRequiredDescription
searchstringno

Call through sheet_run

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

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

Result

Result JSON Schema
json
{
  "items": {
    "additionalProperties": true,
    "properties": {
      "disabled_reason": {
        "type": "string"
      },
      "enabled": {
        "type": "boolean"
      },
      "id": {
        "type": "string"
      },
      "label": {
        "type": "string"
      },
      "menu": {},
      "params": {
        "type": "string"
      },
      "shortcut": {}
    },
    "type": "object"
  },
  "type": "array"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "search": {
      "type": "string"
    }
  },
  "returns": "ids, labels, params",
  "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.