Slide kit command
smartGraphic.insert
Smart graphics
Inserts a smart graphic (list, process, cycle with arrows, hierarchy with connecting lines, pyramid, matrix) built from `items` in `rect` (else the lower slide) on the current slide, as a group: shape.fill, shape.line, shape.effects and format.* on the group format all its shapes.
- Kit
- Slide 0.1.0 (.kslide and .pptx)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
items | string[] | no | |
kind | "list" | "process" | "cycle" | "hierarchy" | "pyramid" | "matrix" | no | |
onSlide | integer | no | the slide the ids are on, from 1 |
rect | number[] | no |
Call through slide_run
text
slide_run {
"path": "<file>.pptx",
"steps": [{ "command": "smartGraphic.insert" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: items, kind, onSlide, rect. slide_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"items": {
"items": {
"type": "string"
},
"type": "array"
},
"kind": {
"enum": [
"list",
"process",
"cycle",
"hierarchy",
"pyramid",
"matrix"
],
"type": "string"
},
"onSlide": {
"description": "the slide the ids are on, from 1",
"type": "integer"
},
"rect": {
"items": {
"type": "number"
},
"type": "array"
}
},
"returns": "{id} (a group: format it, or its shapes, as a whole)",
"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.