---
title: "layer.new: New Layer… — Vector kit command — Kition"
description: "Adds a layer directly above the current layer (or on top of all layers) with optional name, colour, template, lock, visibility and print options; answers its id."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/layer.new"
---

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

# layer.new

**New Layer….** Adds a layer directly above the current layer (or on top of all layers) with optional name, colour, template, lock, visibility and print options; answers its id.

- 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 |
| --- | --- | --- | --- |
| `color` | `string` | no |  |
| `dimImages` | `number \| boolean` | no |  |
| `locked` | `boolean` | no |  |
| `name` | `string` | no |  |
| `preview` | `boolean` | no |  |
| `printable` | `boolean` | no |  |
| `template` | `boolean` | no |  |
| `top` | `boolean` | no |  |
| `visible` | `boolean` | no |  |

## Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `color`, `dimImages`, `locked`, `name`, `preview`, `printable`, `template`, `top`, `visible`. 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": {
    "color": {
      "type": "string"
    },
    "dimImages": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "locked": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "preview": {
      "type": "boolean"
    },
    "printable": {
      "type": "boolean"
    },
    "template": {
      "type": "boolean"
    },
    "top": {
      "type": "boolean"
    },
    "visible": {
      "type": "boolean"
    }
  },
  "returns": "{id}",
  "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).
