---
title: "comment.reply: Reply to a comment — PDF kit command — Kition"
description: "Add a reply to a comment's thread. Undoable."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/comment.reply"
---

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

# comment.reply

**Reply to a comment.** Add a reply to a comment's thread. Undoable.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `author` | `string` | no |  |
| `id` | `string` | no | The comment's id (from comment.list). |
| `index` | `integer` | no | 1-based position on the page, as comment.list reports. (minimum 1) |
| `page` | `integer` | no | With `index`, instead of `id`. (minimum 1) |
| `text` | `string` | yes | (minLength 1) |

## Call through pdf_run

```text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "comment.reply", "params": { "text": <string> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `author`, `id`, `index`, `page`. pdf_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": {
    "author": {
      "type": "string"
    },
    "id": {
      "description": "The comment's id (from comment.list).",
      "type": "string",
      "x-khp-types": [
        "Comment"
      ]
    },
    "index": {
      "description": "1-based position on the page, as comment.list reports. (minimum 1)",
      "type": "integer"
    },
    "page": {
      "description": "With `index`, instead of `id`. (minimum 1)",
      "type": "integer"
    },
    "text": {
      "description": "(minLength 1)",
      "type": "string"
    }
  },
  "required": [
    "text"
  ],
  "type": "object"
}
```

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