---
title: "edit.select: Select Objects — Slide kit command — Kition"
description: "Selects the shapes in `ids` (on slide `onSlide`, from 1) for selection-based commands; `add`/`toggle` change the selection instead of replacing it. Answers the selection."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/edit.select"
---

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

# edit.select

**Select Objects.** Selects the shapes in `ids` (on slide `onSlide`, from 1) for selection-based commands; `add`/`toggle` change the selection instead of replacing it. Answers the selection.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `add` | `boolean` | no |  |
| `id` | `integer \| string` | no | an id; one shape instead of ids |
| `ids` | `integer[]` | no |  |
| `onSlide` | `integer` | no | the slide the ids are on, from 1 |
| `toggle` | `boolean` | no |  |

## Call through slide_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `selected` | `any[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "selected": {
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "add": {
      "type": "boolean"
    },
    "id": {
      "description": "an id; one shape instead of ids",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Shape"
      ]
    },
    "ids": {
      "items": {
        "description": "an id",
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Shape"
      ]
    },
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    },
    "toggle": {
      "type": "boolean"
    }
  },
  "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).
