---
title: "comment.list: List comments — Design kit command — Kition"
description: "Answers comment threads on a page or every page, filtered, sorted and searched."
canonical: "https://developer.kition.ai/docs/kits/design/commands/comment.list"
---

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

# comment.list

**List comments.** Answers comment threads on a page or every page, filtered, sorted and searched.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `author` | `string` | no |  |
| `filter` | `"all" \| "open" \| "resolved" \| "mine" \| "unread"` | no |  |
| `frame` | `integer` | no | a top-level frame id |
| `page` | `integer` | no | default: current; "all" for every page |
| `query` | `string` | no |  |
| `resolved` | `boolean` | no |  |
| `sort` | `"date" \| "page"` | no |  |

## Call through design_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `author`, `filter`, `frame`, `page`, `query`, `resolved`, `sort`. design_run answers the step’s result in `completed[i].result`.

## Result

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

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

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "author": {
      "type": "string"
    },
    "filter": {
      "enum": [
        "all",
        "open",
        "resolved",
        "mine",
        "unread"
      ],
      "type": "string"
    },
    "frame": {
      "description": "a top-level frame id",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "page": {
      "description": "default: current; \"all\" for every page",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "query": {
      "type": "string"
    },
    "resolved": {
      "type": "boolean"
    },
    "sort": {
      "enum": [
        "date",
        "page"
      ],
      "type": "string"
    }
  },
  "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).
