---
title: "select.magicWand: Magic Wand — Vector kit command — Kition"
description: "Selects objects similar to object id by the Magic Wand settings (fill, stroke, weight, opacity, blend), replacing, adding to or subtracting from the selection; answers the count."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/select.magicWand"
---

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

# select.magicWand

**Magic Wand.** Selects objects similar to object id by the Magic Wand settings (fill, stroke, weight, opacity, blend), replacing, adding to or subtracting from the selection; answers the count.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: no
- Acts on: `id` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `integer` | no | object ID |
| `mode` | `"set" \| "add" \| "subtract"` | no |  |
| `reset` | `boolean` | no | read by the command beside its listed parameters |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "select.magicWand" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "count": {
      "type": "number"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "mode": {
      "enum": [
        "set",
        "add",
        "subtract"
      ],
      "type": "string"
    },
    "reset": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "returns": "{count}",
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
