---
title: "select.anchors: Select Anchors — Vector kit command — Kition"
description: "Sets, adds or toggles the direct selection of anchors (subpath and anchor indices) on path id."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/select.anchors"
---

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

# select.anchors

**Select Anchors.** Sets, adds or toggles the direct selection of anchors (subpath and anchor indices) on path id.

- 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 |
| --- | --- | --- | --- |
| `anchors` | `any[]` | no |  |
| `id` | `integer` | no | object ID |
| `ids` | `any[]` | no | read by the command beside its listed parameters |
| `mode` | `"set" \| "add" \| "toggle"` | no |  |

## Call through vector_run

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

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

## Result



```json
{}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "anchors": {
      "type": "array"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "mode": {
      "enum": [
        "set",
        "add",
        "toggle"
      ],
      "type": "string"
    }
  },
  "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).
