Design kit command

command.batch

Run several commands

Runs a list of commands as one undo step (later steps can refer to earlier results with as); use it for multi-step edits.

Kit
Design 0.1.0 (.kdesign)
Changes the document
yes

Parameters

Parameters of command.batch
NameTypeRequiredDescription
commandsobject[]no[{command, params, as?}]
fuelnumbernoread by the command beside its listed parameters
labelstringno
pluginstringnoread by the command beside its listed parameters
xnumbernoread by the command beside its listed parameters
ynumbernoread by the command beside its listed parameters

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "command.batch" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: commands, fuel, label, plugin, x, y. design_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": {
    "commands": {
      "description": "[{command, params, as?}]",
      "items": {
        "additionalProperties": true,
        "properties": {
          "as": {},
          "command": {},
          "params": {}
        },
        "type": "object"
      },
      "type": "array"
    },
    "fuel": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "label": {
      "type": "string"
    },
    "plugin": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "x": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "y": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.