---
title: "comment.add: Add comment — Design kit command — Kition"
description: "Adds a comment thread at a page point, optionally pinned to a layer; answers its id."
canonical: "https://developer.kition.ai/docs/kits/design/commands/comment.add"
---

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

# comment.add

**Add comment.** Adds a comment thread at a page point, optionally pinned to a layer; answers its id.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `anchor` | `string \| boolean` | no |  |
| `author` | `string` | no |  |
| `page` | `integer` | no |  |
| `text` | `string` | no |  |
| `x` | `number` | no |  |
| `y` | `number` | no |  |

## Call through design_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `anchor`, `author`, `page`, `text`, `x`, `y`. design_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "anchor": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "author": {
      "type": "string"
    },
    "page": {
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "text": {
      "type": "string"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "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).
