---
title: "select.sky: Sky — Photo kit command — Kition"
description: "Selects the sky automatically."
canonical: "https://developer.kition.ai/docs/kits/photo/commands/select.sky"
---

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

# select.sky

**Sky.** Selects the sky automatically.

- Kit: Photo 0.1.0 (PSD, PSB, or .kphoto); reference: [Photo kit commands](https://developer.kition.ai/docs/kits/photo.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `coalesce` | `string` | no | Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one. |
| `mode` | `"replace" \| "add" \| "subtract" \| "intersect"` | no |  |
| `sampleAllLayers` | `boolean` | no |  |
| `softness` | `integer` | no | 0 to 100; edge softness |
| `threshold` | `integer` | no | 0 to 100; higher = stricter |

## Call through photo_run

```text
photo_run {
  "path": "<file>.psd",
  "steps": [{ "command": "select.sky" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `coalesce`, `mode`, `sampleAllLayers`, `softness`, `threshold`. photo_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bounds` | `integer[]` | no |  |
| `changed` | `boolean` | no |  |
| `coverage` | `number` | no |  |
| `selected` | `boolean` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "bounds": {
      "items": {
        "type": "integer"
      },
      "type": "array"
    },
    "changed": {
      "type": "boolean"
    },
    "coverage": {
      "type": "number"
    },
    "selected": {
      "type": "boolean"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "coalesce": {
      "description": "Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.",
      "type": "string"
    },
    "mode": {
      "default": "replace",
      "enum": [
        "replace",
        "add",
        "subtract",
        "intersect"
      ],
      "type": "string"
    },
    "sampleAllLayers": {
      "default": true,
      "type": "boolean"
    },
    "softness": {
      "default": 50,
      "description": "0 to 100; edge softness",
      "type": "integer"
    },
    "threshold": {
      "default": 50,
      "description": "0 to 100; higher = stricter",
      "type": "integer"
    }
  },
  "returns": "{selected, changed, coverage (0–1 of the canvas), bounds [x,y,w,h]}",
  "type": "object"
}
```

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