Doc kit command

comment.add

Add Comment

Starts a comment thread on the selection with text and an author.

Kit
Doc 0.1.0 (.docx)
Changes the document
yes

Parameters

Parameters of comment.add
NameTypeRequiredDescription
authorstringnoprincipal id
createdstringnoISO 8601 UTC
namestringno
textstringno

Call through doc_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: author, created, name, text. 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": {
    "author": {
      "description": "principal id",
      "type": "string"
    },
    "created": {
      "description": "ISO 8601 UTC",
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "text": {
      "type": "string"
    }
  },
  "returns": "{thread, threadId} (on the selection, or the word at the caret)",
  "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.