---
title: "guide.add: Add Guide — Vector kit command — Kition"
description: "Adds a vertical or horizontal ruler guide at a position, across the canvas or one artboard, on a layer."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/guide.add"
---

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

# guide.add

**Add Guide.** Adds a vertical or horizontal ruler guide at a position, across the canvas or one artboard, on a layer.

- 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 |
| --- | --- | --- | --- |
| `artboard` | `integer` | no | a position counted from 0 (the first is 0); an artboard guide: it runs across that artboard only and moves, is copied and is deleted with it; default a canvas guide, across the whole canvas |
| `layer` | `integer` | no | object ID |
| `pos` | `number` | no | points; x for vertical, y for horizontal |
| `vertical` | `boolean` | no |  |

## Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `artboard`, `layer`, `pos`, `vertical`. 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": {
    "artboard": {
      "description": "a position counted from 0 (the first is 0); an artboard guide: it runs across that artboard only and moves, is copied and is deleted with it; default a canvas guide, across the whole canvas",
      "type": "integer"
    },
    "layer": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "pos": {
      "description": "points; x for vertical, y for horizontal",
      "type": "number"
    },
    "vertical": {
      "type": "boolean"
    }
  },
  "returns": "{index}",
  "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).
