---
title: "style.manage: Manage Styles — Doc kit command — Kition"
description: "Lists the document's styles with their id, name, type and whether they show in the gallery, sorted as recommended or alphabetically."
canonical: "https://developer.kition.ai/docs/kits/doc/commands/style.manage"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/doc/commands/style.manage](https://developer.kition.ai/docs/kits/doc/commands/style.manage)

# 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); reference: [Doc kit commands](https://developer.kition.ai/docs/kits/doc.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `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



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