Doc kit command

ink.shape

Draw Shape

Selects a shape preset to draw next in the editor, or none.

Kit
Doc 0.1.0 (.docx)
Changes the document
no

Parameters

Parameters of ink.shape
NameTypeRequiredDescription
presetstring | nullno

Call through doc_run

text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "ink.shape" }]
}

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

Result

Result of ink.shape
NameTypeRequiredDescription
shapeanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "shape": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "preset": {
      "oneOf": [
        {
          "description": "a DrawingML preset",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object"
}

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