Doc kit command

ink.stroke

Draw Ink

Draws one ink stroke through points on a page (page points, at most 5000) with a tool, colour and width.

Kit
Doc 0.1.0 (.docx)
Changes the document
yes

Parameters

Parameters of ink.stroke
NameTypeRequiredDescription
colorstringnolike RRGGBB
pageintegerno
pointsnumber[][]nopage points, at most 5000
tool"pen" | "pencil" | "highlighter"no
widthnumbernopoints

Call through doc_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: color, page, points, tool, width. doc_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": {
    "color": {
      "description": "like RRGGBB",
      "type": "string"
    },
    "page": {
      "type": "integer"
    },
    "points": {
      "description": "page points, at most 5000",
      "items": {
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "tool": {
      "enum": [
        "pen",
        "pencil",
        "highlighter"
      ],
      "type": "string"
    },
    "width": {
      "description": "points",
      "type": "number"
    }
  },
  "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.