Slide kit command

slide.go

Go to Slide

Makes slide `index` (from 0) or slide id `id` the current slide, which selection-based commands act on.

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

Parameters

Parameters of slide.go
NameTypeRequiredDescription
idinteger | stringnoan id; in one of several forms of the parameters
indexintegernoa position counted from 0 (the first is 0); in one of several forms of the parameters

Call through slide_run

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

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

Result

Result of slide.go
NameTypeRequiredDescription
indexintegerno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "index": {
      "type": "integer"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "an id; in one of several forms of the parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Slide"
      ]
    },
    "index": {
      "description": "a position counted from 0 (the first is 0); in one of several forms of the parameters",
      "type": "integer"
    }
  },
  "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.