---
title: "slide.go: Go to Slide — Slide kit command — Kition"
description: "Makes slide `index` (from 0) or slide id `id` the current slide, which selection-based commands act on."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/slide.go"
---

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

# slide.go

**Go to Slide.** Makes slide `index` (from 0) or slide id `id` the current slide, which selection-based commands act on.

- 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: `id` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `integer \| string` | no | an id; in one of several forms of the parameters |
| `index` | `integer` | no | a position counted from 0 (the first is 0); in one of several forms of the parameters |

## Call through slide_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `index` | `integer` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "index": {
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "an id; in one of several forms of the parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Slide"
      ]
    },
    "index": {
      "description": "a position counted from 0 (the first is 0); in one of several forms of the parameters",
      "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).
