---
title: "comment.anchor: Comment Anchor — Slide kit command — Kition"
description: "Answers the selected text, shapes, or point (`x`, `y`), else the current slide, as a comment anchor of object ids for a host that keeps comment threads."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/comment.anchor"
---

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

# comment.anchor

**Comment Anchor.** Answers the selected text, shapes, or point (`x`, `y`), else the current slide, as a comment anchor of object ids for a host that keeps comment threads.

- Kit: Slide 0.1.0 (.kslide and .pptx); reference: [Slide kit commands](https://developer.kition.ai/docs/kits/slide.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `onSlide` | `integer` | no | the slide the ids are on, from 1 |
| `x` | `number` | no |  |
| `y` | `number` | no | a point on the slide, in points from its top |

## Call through slide_run

```text
slide_run {
  "path": "<file>.pptx",
  "steps": [{ "command": "comment.anchor" }]
}
```

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

## Result



```json
{}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "description": "a point on the slide, in points from its top",
      "type": "number"
    }
  },
  "returns": "{ids, range?, quote?, page} | null (the selected text or shapes as a comment anchor, else the point, else the current slide; makes the replica if there is none; null outside the slides)",
  "type": "object"
}
```

Generated from the command list of @kition/slide-darwin-arm64@0.1.0 and the kit itself (slide_commands through @kition/cli@0.1.1, built from KitionAI/kition-slide@7ef3d11).
