---
title: "drawing.insert: Insert Drawing Object — Slide kit command — Kition"
description: "Inserts a KitDrawing object (shape, text box or chart) from geometry, frame, fill, stroke and text on the current slide and answers its id."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/drawing.insert"
---

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

# drawing.insert

**Insert Drawing Object.** Inserts a KitDrawing object (shape, text box or chart) from geometry, frame, fill, stroke and text on the current slide and answers its id.

- 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 |
| --- | --- | --- | --- |
| `body` | `any` | no |  |
| `chart` | `object` | no | {kind?, title?, categories?, series?: [{name, values, color?}], legend?, dataLabels?, gridlines?, xTitle?, yTitle?} |
| `fill` | `any` | no |  |
| `frame` | `object` | no | {x,y,w,h,rot?,flipH?,flipV?} |
| `geometry` | `object` | no | {preset, adjust?} |
| `kind` | `"shape" \| "textBox" \| "chart"` | no |  |
| `paragraphs` | `any` | no | instead of text |
| `placement` | `object` | no | {kind: slide} |
| `stroke` | `any` | no |  |
| `text` | `string` | no |  |
| `warp` | `any` | no |  |

## Call through slide_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `body`, `chart`, `fill`, `frame`, `geometry`, `kind`, `paragraphs`, `placement`, `stroke`, `text`, `warp`. 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": {
    "body": {},
    "chart": {
      "additionalProperties": true,
      "description": "{kind?, title?, categories?, series?: [{name, values, color?}], legend?, dataLabels?, gridlines?, xTitle?, yTitle?}",
      "properties": {
        "categories": {},
        "dataLabels": {},
        "gridlines": {},
        "kind": {},
        "legend": {},
        "series": {
          "description": "[{name, values, color?}]",
          "items": {
            "additionalProperties": true,
            "properties": {
              "color": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "values": {}
            },
            "type": "object"
          },
          "type": "array"
        },
        "title": {
          "type": "string"
        },
        "xTitle": {},
        "yTitle": {}
      },
      "type": "object"
    },
    "fill": {},
    "frame": {
      "additionalProperties": true,
      "description": "{x,y,w,h,rot?,flipH?,flipV?}",
      "properties": {
        "flipH": {},
        "flipV": {},
        "h": {
          "type": "number"
        },
        "rot": {},
        "w": {
          "type": "number"
        },
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "geometry": {
      "additionalProperties": true,
      "description": "{preset, adjust?}",
      "properties": {
        "adjust": {},
        "preset": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "kind": {
      "enum": [
        "shape",
        "textBox",
        "chart"
      ],
      "type": "string"
    },
    "paragraphs": {
      "description": "instead of text"
    },
    "placement": {
      "additionalProperties": true,
      "description": "{kind: slide}",
      "properties": {
        "kind": {
          "description": "slide"
        }
      },
      "type": "object"
    },
    "stroke": {},
    "text": {
      "type": "string"
    },
    "warp": {}
  },
  "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).
