---
title: "comment.open: Open comment — Design kit command — Kition"
description: "Opens a comment thread and zooms or centres the view on it."
canonical: "https://developer.kition.ai/docs/kits/design/commands/comment.open"
---

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

# comment.open

**Open comment.** Opens a comment thread and zooms or centres the view on it.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `author` | `string` | no |  |
| `id` | `integer \| string` | no | an id; one of several alternative parameters |
| `ids` | `any[]` | no | read by the command beside its listed parameters |
| `link` | `any` | no | one of several alternative parameters |
| `maxLines` | `number` | no | read by the command beside its listed parameters |
| `minSize` | `number` | no | read by the command beside its listed parameters |
| `orphans` | `boolean` | no | read by the command beside its listed parameters |
| `view` | `"fit" \| "center" \| "keep"` | no |  |

## Call through design_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `author`, `id`, `ids`, `link`, `maxLines`, `minSize`, `orphans`, `view`. design_run answers the step’s result in `completed[i].result`.

## Result



```json
{}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "author": {
      "type": "string"
    },
    "id": {
      "description": "an id; one of several alternative parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "CommentThread"
      ]
    },
    "ids": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "link": {
      "description": "one of several alternative parameters"
    },
    "maxLines": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "minSize": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "orphans": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "view": {
      "enum": [
        "fit",
        "center",
        "keep"
      ],
      "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).
