Slide kit command

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)
Changes the document
yes
Acts on
id (one id), which a run step’s on fills

Parameters

Parameters of text.edit
NameTypeRequiredDescription
allbooleannoselect all of the text
atnumber[]no[paragraph, char]
cellnumber[]no[row, col]
endbooleanno
idinteger | stringno
notesbooleanno
onSlideintegernothe 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

Result of text.edit
NameTypeRequiredDescription
atinteger[]no
idintegerno
Result JSON Schema
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/[email protected] and the kit itself (slide_commands through @kition/[email protected], built from KitionAI/kition-slide@7ef3d11). As data: commands.jsonl.