Doc kit command

autocorrect.options

AutoCorrect Options

Turns AutoCorrect on or off, or adds a replacement (from, to), and answers the AutoCorrect list.

Kit
Doc 0.1.0 (.docx)
Changes the document
no

Parameters

Parameters of autocorrect.options
NameTypeRequiredDescription
addobjectno
enabledbooleanno

Call through doc_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: add, enabled. doc_run answers the step’s result in completed[i].result.

Result

Result of autocorrect.options
NameTypeRequiredDescription
enabledbooleanno
entriesnumberno
userany[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "entries": {
      "type": "number"
    },
    "user": {
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "add": {
      "additionalProperties": true,
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "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.