Vector kit command

library.get

Library

Answers one library's graphics (with thumbnails), colours, character and paragraph styles and groups.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of library.get
NameTypeRequiredDescription
idsany[]noread by the command beside its listed parameters
librarystringno

Call through vector_run

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

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

Result

Result of library.get
NameTypeRequiredDescription
charStylesany[]no
colorsany[]no
graphicsany[]no
groupsany[]no
idanyno
nameanyno
paraStylesany[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "charStyles": {
      "type": "array"
    },
    "colors": {
      "type": "array"
    },
    "graphics": {
      "type": "array"
    },
    "groups": {
      "type": "array"
    },
    "id": {},
    "name": {},
    "paraStyles": {
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "ids": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "library": {
      "type": "string"
    }
  },
  "returns": "{id, name, graphics: [{id, name, width, height, thumbnail: PNG base64}], colors: [{name, hex, color}], charStyles: [{name, attrs}], paraStyles: [{name, attrs}], groups: [{name, items: [{kind: color|charStyle|paraStyle|graphic, item: name (graphic: id)}]}] (an item is in one group at most; the others are ungrouped)}",
  "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.