Doc kit command

style.manage

Manage Styles

Lists the document's styles with their id, name, type and whether they show in the gallery, sorted as recommended or alphabetically.

Kit
Doc 0.1.0 (.docx)
Changes the document
no

Parameters

Parameters of style.manage
NameTypeRequiredDescription
sort"recommended" | "alphabetical"no

Call through doc_run

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

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

Result

Result JSON Schema
json
{
  "items": {
    "additionalProperties": true,
    "properties": {
      "basedOn": {},
      "builtIn": {
        "type": "boolean"
      },
      "format": {},
      "hidden": {
        "type": "boolean"
      },
      "id": {
        "type": "string"
      },
      "inGallery": {
        "type": "boolean"
      },
      "name": {
        "type": "string"
      },
      "priority": {},
      "type": {
        "type": "string"
      }
    },
    "type": "object"
  },
  "type": "array"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "sort": {
      "enum": [
        "recommended",
        "alphabetical"
      ],
      "type": "string"
    }
  },
  "returns": "[{id, name, type: \"paragraph|character|linked|table\", builtIn, inGallery, hidden, basedOn, priority, format}]",
  "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.