Doc kit command
change.options
Track Changes Options
Sets which revisions show in the editor (comments, ink, insertions and deletions, formatting, balloons).
- Kit
- Doc 0.1.0 (.docx)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
balloons | "revisions" | "inline" | "commentsAndFormatting" | no | |
changedLines | "outside" | "left" | "right" | "none" | no | |
changedLinesColor | "auto" | "RRGGBB" | no | |
comments | boolean | no | |
deleteColor | "byAuthor" | "RRGGBB" | no | |
deleteMark | "strikethrough" | "doubleStrikethrough" | "hidden" | "caret" | "hash" | "underline" | "colorOnly" | no | |
formatting | boolean | no | |
ink | boolean | no | |
insertColor | "byAuthor" | "RRGGBB" | no | |
insertMark | "underline" | "doubleUnderline" | "bold" | "italic" | "strikethrough" | "colorOnly" | "none" | no | |
insertionsDeletions | boolean | no | |
trackFormatting | boolean | no |
Call through doc_run
text
doc_run {
"path": "<file>.docx",
"steps": [{ "command": "change.options" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: balloons, changedLines, changedLinesColor, comments, deleteColor, deleteMark, formatting, ink, insertColor, insertMark, insertionsDeletions, trackFormatting. doc_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
balloons | string | no | |
changedLines | string | no | |
changedLinesColor | string | no | |
comments | boolean | no | |
deleteColor | string | no | |
deleteMark | string | no | |
formatting | boolean | no | |
ink | boolean | no | |
insertColor | string | no | |
insertMark | string | no | |
insertionsDeletions | boolean | no | |
trackFormatting | boolean | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"balloons": {
"type": "string"
},
"changedLines": {
"type": "string"
},
"changedLinesColor": {
"type": "string"
},
"comments": {
"type": "boolean"
},
"deleteColor": {
"type": "string"
},
"deleteMark": {
"type": "string"
},
"formatting": {
"type": "boolean"
},
"ink": {
"type": "boolean"
},
"insertColor": {
"type": "string"
},
"insertMark": {
"type": "string"
},
"insertionsDeletions": {
"type": "boolean"
},
"trackFormatting": {
"type": "boolean"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"balloons": {
"enum": [
"revisions",
"inline",
"commentsAndFormatting"
],
"type": "string"
},
"changedLines": {
"enum": [
"outside",
"left",
"right",
"none"
],
"type": "string"
},
"changedLinesColor": {
"enum": [
"auto",
"RRGGBB"
],
"type": "string"
},
"comments": {
"type": "boolean"
},
"deleteColor": {
"enum": [
"byAuthor",
"RRGGBB"
],
"type": "string"
},
"deleteMark": {
"enum": [
"strikethrough",
"doubleStrikethrough",
"hidden",
"caret",
"hash",
"underline",
"colorOnly"
],
"type": "string"
},
"formatting": {
"type": "boolean"
},
"ink": {
"type": "boolean"
},
"insertColor": {
"enum": [
"byAuthor",
"RRGGBB"
],
"type": "string"
},
"insertMark": {
"enum": [
"underline",
"doubleUnderline",
"bold",
"italic",
"strikethrough",
"colorOnly",
"none"
],
"type": "string"
},
"insertionsDeletions": {
"type": "boolean"
},
"trackFormatting": {
"type": "boolean"
}
},
"returns": "the options (omit all to read them)",
"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.