---
title: "page.go: Go to page — Design kit command — Kition"
description: "Makes a page the current one, by its id or its index, as clicking it in the Pages list does; answers its id, index and name. Agents name the page a step acts on with `at.part` instead, which goes there for that step only."
canonical: "https://developer.kition.ai/docs/kits/design/commands/page.go"
---

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

# page.go

**Go to page.** Makes a page the current one, by its id or its index, as clicking it in the Pages list does; answers its id, index and name. Agents name the page a step acts on with `at.part` instead, which goes there for that step only.

- Kit: Design 0.1.0 (.kdesign); reference: [Design kit commands](https://developer.kition.ai/docs/kits/design.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `integer \| string` | no | The page to go to, by its id (inspect's `pages[].id`), which stays the same when pages are added, moved or renamed. |
| `index` | `integer` | no | The page to go to, counted from 0 (its `index` in inspect's `pages`). |

## Call through design_run

```text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "page.go" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `integer` | yes |  |
| `index` | `integer` | yes | Counted from 0. |
| `name` | `string` | yes |  |

```json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "integer"
    },
    "index": {
      "description": "Counted from 0.",
      "type": "integer"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "index",
    "name"
  ],
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "The page to go to, by its id (inspect's `pages[].id`), which stays the same when pages are added, moved or renamed.",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Node"
      ]
    },
    "index": {
      "description": "The page to go to, counted from 0 (its `index` in inspect's `pages`).",
      "type": "integer"
    }
  },
  "returns": "{id, index, name}",
  "type": "object"
}
```

Generated from the command list of @kition/design-darwin-arm64@0.1.0 and the kit itself (design_commands through @kition/cli@0.1.1, built from KitionAI/kition-design@abc7e16).
