---
title: "smartGraphic.insert: Smart graphics — Slide kit command — Kition"
description: "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."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/smartGraphic.insert"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/slide/commands/smartGraphic.insert](https://developer.kition.ai/docs/kits/slide/commands/smartGraphic.insert)

# 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); reference: [Slide kit commands](https://developer.kition.ai/docs/kits/slide.md)
- 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/slide-darwin-arm64@0.1.0 and the kit itself (slide_commands through @kition/cli@0.1.1, built from KitionAI/kition-slide@7ef3d11).
