---
title: "text.edit: Edit Text — Slide kit command — Kition"
description: "Starts editing the text of shape `id` (or a table cell, or the notes) with the insertion point at a paragraph and character, for the `text.*` typing commands."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/text.edit"
---

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

# text.edit

**Edit Text.** Starts editing the text of shape `id` (or a table cell, or the notes) with the insertion point at a paragraph and character, for the `text.*` typing commands.

- Kit: Slide 0.1.0 (.kslide and .pptx); reference: [Slide kit commands](https://developer.kition.ai/docs/kits/slide.md)
- Changes the document: yes
- Acts on: `id` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `all` | `boolean` | no | select all of the text |
| `at` | `number[]` | no | [paragraph, char] |
| `cell` | `number[]` | no | [row, col] |
| `end` | `boolean` | no |  |
| `id` | `integer \| string` | no |  |
| `notes` | `boolean` | no |  |
| `onSlide` | `integer` | no | the slide the ids are on, from 1 |

## Call through slide_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `all`, `at`, `cell`, `end`, `id`, `notes`, `onSlide`. slide_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `at` | `integer[]` | no |  |
| `id` | `integer` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "at": {
      "items": {
        "type": "integer"
      },
      "type": "array"
    },
    "id": {
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "all": {
      "description": "select all of the text",
      "type": "boolean"
    },
    "at": {
      "description": "[paragraph, char]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "cell": {
      "description": "[row, col]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "end": {
      "type": "boolean"
    },
    "id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Shape"
      ]
    },
    "notes": {
      "type": "boolean"
    },
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    }
  },
  "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).
