---
title: "library.get: Library — Vector kit command — Kition"
description: "Answers one library's graphics (with thumbnails), colours, character and paragraph styles and groups."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/library.get"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/library.get](https://developer.kition.ai/docs/kits/vector/commands/library.get)

# library.get

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

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ids` | `any[]` | no | read by the command beside its listed parameters |
| `library` | `string` | no |  |

## 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

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `charStyles` | `any[]` | no |  |
| `colors` | `any[]` | no |  |
| `graphics` | `any[]` | no |  |
| `groups` | `any[]` | no |  |
| `id` | `any` | no |  |
| `name` | `any` | no |  |
| `paraStyles` | `any[]` | no |  |

```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/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
