Slide kit command

edit.select

Select Objects

Selects the shapes in `ids` (on slide `onSlide`, from 1) for selection-based commands; `add`/`toggle` change the selection instead of replacing it. 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 edit.select
NameTypeRequiredDescription
addbooleanno
idinteger | stringnoan id; one shape instead of ids
idsinteger[]no
onSlideintegernothe slide the ids are on, from 1
togglebooleanno

Call through slide_run

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

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

Result

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

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "add": {
      "type": "boolean"
    },
    "id": {
      "description": "an id; one shape instead of ids",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Shape"
      ]
    },
    "ids": {
      "items": {
        "description": "an id",
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Shape"
      ]
    },
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    },
    "toggle": {
      "type": "boolean"
    }
  },
  "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.