---
title: "ink.pen: Pen — Slide kit command — Kition"
description: "Selects the pen ink tool in the editor with a color and width; answers the tool state."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/ink.pen"
---

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

# ink.pen

**Pen.** Selects the pen ink tool in the editor with a color and width; answers the tool state.

- Kit: Slide 0.1.0 (.kslide and .pptx); reference: [Slide kit commands](https://developer.kition.ai/docs/kits/slide.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `color` | `string` | no | a colour such as #rrggbb |
| `width` | `number (≥ 0.25, ≤ 72)` | no | points |

## Call through slide_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `color` | `string` | no |  |
| `tool` | `string` | no |  |
| `width` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "color": {
      "type": "string"
    },
    "tool": {
      "type": "string"
    },
    "width": {
      "type": "number"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "color": {
      "description": "a colour such as #rrggbb",
      "type": "string"
    },
    "width": {
      "description": "points",
      "maximum": 72,
      "minimum": 0.25,
      "type": "number"
    }
  },
  "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).
