Design kit command

comment.add

Add comment

Adds a comment thread at a page point, optionally pinned to a layer; answers its id.

Kit
Design 0.1.0 (.kdesign)
Changes the document
yes

Parameters

Parameters of comment.add
NameTypeRequiredDescription
anchorstring | booleanno
authorstringno
pageintegerno
textstringno
xnumberno
ynumberno

Call through design_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: anchor, author, page, text, 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": {
    "anchor": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "author": {
      "type": "string"
    },
    "page": {
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "text": {
      "type": "string"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "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.