Slide kit command

comment.add

New Comment

Adds a comment with `text` on slide `slide` (from 0, else the current one), anchored to shape `id` or a point, and answers the thread.

Kit
Slide 0.1.0 (.kslide and .pptx)
Changes the document
yes

Parameters

Parameters of comment.add
NameTypeRequiredDescription
authorstringnothe author's principal id
createdstringnoISO 8601 time
idinteger | stringnoa shape id (number, number string or KitDrawing id)
namestringno
onSlideintegernothe slide the ids are on, from 1
slideintegernoa position counted from 0 (the first is 0)
textstringno
xnumberno
ynumberno

Call through slide_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: author, created, id, name, onSlide, slide, text, x, y. slide_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": {
    "author": {
      "description": "the author's principal id",
      "type": "string"
    },
    "created": {
      "description": "ISO 8601 time",
      "type": "string"
    },
    "id": {
      "description": "a shape id (number, number string or KitDrawing id)",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Shape"
      ]
    },
    "name": {
      "type": "string"
    },
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    },
    "slide": {
      "description": "a position counted from 0 (the first is 0)",
      "type": "integer"
    },
    "text": {
      "type": "string"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "returns": "{index, thread}",
  "type": "object"
}

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