Slide kit command

slide.selectSlides

Select Slides

Selects slides by id or index (from 0) in the slide panel, for slide-scope commands such as `edit.cut {scope: "slides"}`. Answers the selection.

Kit
Slide 0.1.0 (.kslide and .pptx)
Changes the document
no
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of slide.selectSlides
NameTypeRequiredDescription
addbooleanno
ids(integer | string)[]no[slide id]
indicesinteger[]no

Call through slide_run

text
slide_run {
  "path": "<file>.pptx",
  "steps": [{ "command": "slide.selectSlides" }]
}

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

Result

Result of slide.selectSlides
NameTypeRequiredDescription
selectedany[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "selected": {
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "add": {
      "type": "boolean"
    },
    "ids": {
      "description": "[slide id]",
      "items": {
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Slide"
      ]
    },
    "indices": {
      "items": {
        "description": "a position counted from 0 (the first is 0)",
        "type": "integer"
      },
      "type": "array"
    }
  },
  "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.