---
title: "path.mirrorCut: Mirror & Cut — Vector kit command — Kition"
description: "Cuts the selected art along an axis and mirrors the kept side onto the other, as one undo step."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/path.mirrorCut"
---

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

# path.mirrorCut

**Mirror & Cut.** Cuts the selected art along an axis and mirrors the kept side onto the other, as one undo step.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `axis` | `"vertical" \| "horizontal" \| "free"` | no | vertical |
| `from` | `number[]` | no |  |
| `keep` | `"left" \| "right" \| "top" \| "bottom"` | no | the side kept; default left, or top for a horizontal-ish axis |
| `to` | `number[]` | no | free: the axis through both; vertical/horizontal: the axis through `from`, default the selection's centre |

## Call through vector_run

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

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

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "axis": {
      "description": "vertical",
      "enum": [
        "vertical",
        "horizontal",
        "free"
      ],
      "type": "string"
    },
    "from": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "keep": {
      "description": "the side kept; default left, or top for a horizontal-ish axis",
      "enum": [
        "left",
        "right",
        "top",
        "bottom"
      ],
      "type": "string"
    },
    "to": {
      "description": "free: the axis through both; vertical/horizontal: the axis through `from`, default the selection's centre",
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "returns": "{ids, removed}",
  "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).
