Slide kit command

shape.inspect

Inspect Shape

Answers the full properties of shape `id` (on slide `onSlide`, from 1) with its effective formatting.

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 shape.inspect
NameTypeRequiredDescription
idinteger | stringno
onSlideintegernothe slide the ids are on, from 1

Call through slide_run

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

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

Result

Result of shape.inspect
NameTypeRequiredDescription
boxobjectno
shapeobjectno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "box": {
      "additionalProperties": true,
      "properties": {
        "h": {
          "type": "number"
        },
        "w": {
          "type": "number"
        },
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "shape": {
      "additionalProperties": true,
      "properties": {
        "click": {},
        "decorative": {
          "type": "boolean"
        },
        "descr": {
          "type": "string"
        },
        "effects": {},
        "fill": {},
        "geom": {
          "additionalProperties": true,
          "properties": {
            "kind": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "hidden": {
          "type": "boolean"
        },
        "hover": {},
        "id": {
          "type": "integer"
        },
        "kind": {
          "additionalProperties": true,
          "properties": {
            "type": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "line": {},
        "locked": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "ph": {},
        "style": {},
        "text": {
          "additionalProperties": true,
          "properties": {
            "body": {},
            "paragraphs": {}
          },
          "type": "object"
        },
        "textBox": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "xfrm": {
          "additionalProperties": true,
          "properties": {
            "h": {
              "type": "number"
            },
            "w": {
              "type": "number"
            },
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Shape"
      ]
    },
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    }
  },
  "returns": "full shape JSON plus its effective box",
  "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.