---
title: "list.get: List Definition — Doc kit command — Kition"
description: "Answers a list's definition (each level's format, text and indents); default: the list at the caret."
canonical: "https://developer.kition.ai/docs/kits/doc/commands/list.get"
---

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

# list.get

**List Definition.** Answers a list's definition (each level's format, text and indents); default: the list at the caret.

- 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 |
| --- | --- | --- | --- |
| `num` | `integer` | no | list id (default: the caret's list) |

## Call through doc_run

```text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "list.get" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `levels` | `object[]` | no |  |
| `num` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "levels": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "align": {
            "type": "string"
          },
          "alignedAt": {
            "type": "number"
          },
          "bold": {
            "type": "boolean"
          },
          "color": {},
          "follow": {
            "type": "string"
          },
          "font": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "indentAt": {
            "type": "number"
          },
          "italic": {
            "type": "boolean"
          },
          "legal": {
            "type": "boolean"
          },
          "restartAfter": {},
          "start": {
            "type": "number"
          },
          "style": {},
          "tabAt": {},
          "text": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "num": {
      "type": "number"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "num": {
      "description": "list id (default: the caret's list)",
      "type": "integer"
    }
  },
  "returns": "{\"num\", \"levels\": [as list.define]}",
  "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).
