Slide kit command

drawing.describe

Describe Drawing Objects

Answers the drawing objects (shapes, text boxes, connectors, groups, charts) in KitDrawing form: geometry, frame, fill, stroke, text. Defaults to the selection, else every object on the current slide.

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 drawing.describe
NameTypeRequiredDescription
idinteger | stringnoan id; one shape instead of ids
ids(integer | string)[]no
onSlideintegernothe slide the ids are on, from 1

Call through slide_run

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

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

Result

Result of drawing.describe
NameTypeRequiredDescription
objectsobject[]no
selectionobjectno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "objects": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "frame": {},
          "geometry": {},
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "placement": {},
          "text": {}
        },
        "type": "object"
      },
      "type": "array"
    },
    "selection": {
      "additionalProperties": true,
      "properties": {
        "frame": {
          "additionalProperties": true,
          "properties": {
            "mixed": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "geometry": {
          "additionalProperties": true,
          "properties": {
            "adjust": {},
            "preset": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "kind": {
          "additionalProperties": true,
          "properties": {
            "mixed": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "placement": {
          "additionalProperties": true,
          "properties": {
            "kind": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "text": {
          "additionalProperties": true,
          "properties": {
            "mixed": {
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}

Parameter schema

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