---
title: "image.insert: Picture — Board kit command — Kition"
description: "Places a picture from a workspace file or base64 bytes (PNG, JPEG, GIF, WebP, SVG); the picture is stored in the board."
canonical: "https://developer.kition.ai/docs/kits/board/commands/image.insert"
---

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

# image.insert

**Picture.** Places a picture from a workspace file or base64 bytes (PNG, JPEG, GIF, WebP, SVG); the picture is stored in the board.

- Kit: Board 0.1.0 (.kboard); reference: [Board kit commands](https://developer.kition.ai/docs/kits/board.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `alt` | `string` | no | Alternative text |
| `data` | `string` | no | The picture's bytes as base64 (instead of file) |
| `file` | `string` | no | A workspace picture (PNG, JPEG, GIF, WebP, SVG), read once into the board |
| `mime` | `string` | no | The picture's type, checked against its bytes |
| `page` | `string` | no | The page's id; the shown page when absent |
| `position` | `number[] \| object` | no | [x, y]; right of the content when absent |
| `size` | `number[] \| object` | no | [w, h]; from the picture, at most 800 wide, when absent |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "image.insert" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `alt`, `data`, `file`, `mime`, `page`, `position`, `size`. board_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": {
    "alt": {
      "description": "Alternative text",
      "type": "string"
    },
    "data": {
      "description": "The picture's bytes as base64 (instead of file)",
      "type": "string"
    },
    "file": {
      "description": "A workspace picture (PNG, JPEG, GIF, WebP, SVG), read once into the board",
      "type": "string",
      "x-khp-file": {
        "accept": [
          "png",
          "jpg",
          "jpeg",
          "gif",
          "webp",
          "svg"
        ],
        "access": "read"
      }
    },
    "mime": {
      "description": "The picture's type, checked against its bytes",
      "type": "string"
    },
    "page": {
      "description": "The page's id; the shown page when absent",
      "type": "string",
      "x-khp-types": [
        "Page"
      ]
    },
    "position": {
      "description": "[x, y]; right of the content when absent",
      "oneOf": [
        {
          "items": {
            "description": "One component",
            "maximum": 1000000,
            "minimum": -1000000,
            "type": "number"
          },
          "type": "array"
        },
        {
          "additionalProperties": false,
          "properties": {
            "x": {
              "description": "One component",
              "maximum": 1000000,
              "minimum": -1000000,
              "type": "number"
            },
            "y": {
              "description": "One component",
              "maximum": 1000000,
              "minimum": -1000000,
              "type": "number"
            }
          },
          "required": [
            "x",
            "y"
          ],
          "type": "object"
        }
      ]
    },
    "size": {
      "description": "[w, h]; from the picture, at most 800 wide, when absent",
      "oneOf": [
        {
          "items": {
            "description": "One component",
            "maximum": 100000,
            "minimum": 0,
            "type": "number"
          },
          "type": "array"
        },
        {
          "additionalProperties": false,
          "properties": {
            "h": {
              "description": "One component",
              "maximum": 100000,
              "minimum": 0,
              "type": "number"
            },
            "w": {
              "description": "One component",
              "maximum": 100000,
              "minimum": 0,
              "type": "number"
            }
          },
          "required": [
            "h",
            "w"
          ],
          "type": "object"
        }
      ]
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/board-darwin-arm64@0.1.0 and the kit itself (board_commands through @kition/cli@0.1.1, built from KitionAI/kition-board@e78c190).
