Design kit command

tool.place

Place with the tool

Places what a click with a shape or frame tool makes at x, y (default the middle of the view), selected.

Kit
Design 0.1.0 (.kdesign)
Changes the document
yes

Parameters

Parameters of tool.place
NameTypeRequiredDescription
toolstringno
xnumberno
ynumbernoits centre, page coords; default the middle of the view

Call through design_run

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

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

Result

Result JSON Schema
json
{}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "tool": {
      "type": "string"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "description": "its centre, page coords; default the middle of the view",
      "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.