Slide kit command

slide.inspect

Inspect Slide

Answers one slide (`index` from 0, else the current one): its shapes with ids, kinds, boxes, text and fills (a group's children with their boxes on the slide), plus animations, transition, notes and comments. An agent's read leaves the current slide and the selection as they were: name the slide in later calls (`onSlide`, or the run's `target` or a step's `at.part`).

Kit
Slide 0.1.0 (.kslide and .pptx)
Changes the document
no

Parameters

Parameters of slide.inspect
NameTypeRequiredDescription
indexintegernoa position counted from 0 (the first is 0)
selectbooleannofalse: a person's read leaves the current slide; an agent's read always does

Call through slide_run

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

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

Result

Result of slide.inspect
NameTypeRequiredDescription
animationsany[]no
backgroundstringno
commentsintegerno
hiddenbooleanno
idintegerno
indexintegerno
layoutstringno
notesstringno
shapesobject[]no
titlestringno
transitionanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "animations": {
      "type": "array"
    },
    "background": {
      "type": "string"
    },
    "comments": {
      "type": "integer"
    },
    "hidden": {
      "type": "boolean"
    },
    "id": {
      "type": "integer"
    },
    "index": {
      "type": "integer"
    },
    "layout": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "shapes": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "box": {},
          "fill": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "preset": {
            "type": "string"
          },
          "rotation": {
            "type": "number"
          },
          "text": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "title": {
      "type": "string"
    },
    "transition": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "index": {
      "description": "a position counted from 0 (the first is 0)",
      "type": "integer"
    },
    "select": {
      "description": "false: a person's read leaves the current slide; an agent's read always does",
      "type": "boolean"
    }
  },
  "returns": "the slide's shapes with ids, kinds, boxes, text, fills, animations, transition, notes",
  "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.