Slide kit command

file.inspect

Inspect slide

Answers the presentation: slides with ids, titles, layouts and shape counts, the current slide and selection, slide size, theme and fonts. Start here.

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

Parameters

None.

Call through slide_run

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

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

Result

Result of file.inspect
NameTypeRequiredDescription
dirtybooleanno
fontsobjectno
layoutsobject[]no
mediaany[]no
pathanyno
redoanyno
sectionsany[]no
selectionobjectno
slideSizenumber[]no
slidesobject[]no
themestringno
titlestringno
undoanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "dirty": {
      "type": "boolean"
    },
    "fonts": {
      "additionalProperties": true,
      "properties": {
        "major": {
          "type": "string"
        },
        "minor": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "layouts": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "media": {
      "type": "array"
    },
    "path": {},
    "redo": {},
    "sections": {
      "type": "array"
    },
    "selection": {
      "additionalProperties": true,
      "properties": {
        "cells": {},
        "shapes": {
          "type": "array"
        },
        "slide": {
          "type": "integer"
        },
        "slides": {
          "type": "array"
        },
        "target": {
          "additionalProperties": true,
          "properties": {
            "kind": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "text": {}
      },
      "type": "object"
    },
    "slideSize": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "slides": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "animations": {
            "type": "integer"
          },
          "hidden": {
            "type": "boolean"
          },
          "id": {
            "type": "integer"
          },
          "index": {
            "type": "integer"
          },
          "layout": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "shapes": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "transition": {}
        },
        "type": "object"
      },
      "type": "array"
    },
    "theme": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "undo": {}
  },
  "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.