Slide kit command
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)
- 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
Result JSON Schema
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/[email protected] and the kit itself (slide_commands through @kition/[email protected], built from KitionAI/kition-slide@7ef3d11). As data: commands.jsonl.