---
title: "annotation.list: List annotations — Design kit command — Kition"
description: "Answers the annotations on layers or a page, optionally of one category."
canonical: "https://developer.kition.ai/docs/kits/design/commands/annotation.list"
---

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

# annotation.list

**List annotations.** Answers the annotations on layers or a page, optionally of one category.

- Kit: Design 0.1.0 (.kdesign); reference: [Design kit commands](https://developer.kition.ai/docs/kits/design.md)
- Changes the document: no
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `assets` | `boolean` | no | read by the command beside its listed parameters |
| `category` | `string` | no |  |
| `id` | `integer \| string` | no | an id; those layers; one of several alternative parameters |
| `ids` | `(integer \| string)[]` | no | those layers; one of several alternative parameters |
| `page` | `integer` | no | page id, or "all"; default the current page |
| `query` | `string` | no | read by the command beside its listed parameters |
| `server` | `string` | no | read by the command beside its listed parameters |

## Call through design_run

```text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "annotation.list" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `assets`, `category`, `id`, `ids`, `page`, `query`, `server`. design_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `annotations` | `any[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "annotations": {
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "assets": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "category": {
      "type": "string"
    },
    "id": {
      "description": "an id; those layers; one of several alternative parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "those layers; one of several alternative parameters",
      "items": {
        "description": "an id",
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "page": {
      "description": "page id, or \"all\"; default the current page",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "query": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "server": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    }
  },
  "returns": "{annotations: [{id, name, index, label, category?: {id, name, color}, properties: [{property, label, value (null when the layer has none), token?, color?}]}]}",
  "type": "object"
}
```

Generated from the command list of @kition/design-darwin-arm64@0.1.0 and the kit itself (design_commands through @kition/cli@0.1.1, built from KitionAI/kition-design@abc7e16).
