---
title: "select.area: Select area — Design kit command — Kition"
description: "Selects the layers inside a marquee rectangle (adding or including nested layers as asked); answers the selection."
canonical: "https://developer.kition.ai/docs/kits/design/commands/select.area"
---

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

# select.area

**Select area.** Selects the layers inside a marquee rectangle (adding or including nested layers as asked); answers the selection.

- 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 |
| --- | --- | --- | --- |
| `add` | `boolean` | no |  |
| `deep` | `boolean` | no |  |
| `height` | `number` | no | page units; a marquee from x, y |
| `width` | `number` | no |  |
| `x` | `number` | no |  |
| `y` | `number` | no |  |

## Call through design_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `add`, `deep`, `height`, `width`, `x`, `y`. design_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ok` | `boolean` | no |  |
| `selection` | `any` | no |  |
| `uiRequests` | `object[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "selection": {},
    "uiRequests": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "data": {
            "additionalProperties": true,
            "type": "object"
          },
          "kind": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "add": {
      "type": "boolean"
    },
    "deep": {
      "type": "boolean"
    },
    "height": {
      "description": "page units; a marquee from x, y",
      "type": "number"
    },
    "width": {
      "type": "number"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "returns": "{selection}; with no box: draw one from the keyboard in the app (arrows move it, Cmd/Ctrl+arrows or Shift+arrows size it, Enter selects, Escape cancels)",
  "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).
