Vector kit command

charStyle.list

Character Styles

Answers the document's character styles with their attributes and how many runs use each.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

None.

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "charStyle.list" }]
}

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

Result

Result of charStyle.list
NameTypeRequiredDescription
stylesobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "styles": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "attrs": {
            "additionalProperties": true,
            "type": "object"
          },
          "name": {
            "type": "string"
          },
          "uses": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

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