---
title: "text.step: Step Type — Vector kit command — Kition"
description: "Steps a type attribute (size, leading, tracking, kerning, baseline shift) up or down by the preference increments."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/text.step"
---

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

# text.step

**Step Type.** Steps a type attribute (size, leading, tracking, kerning, baseline shift) up or down by the preference increments.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `attribute` | `"size" \| "leading" \| "tracking" \| "kerning" \| "baselineShift"` | no |  |
| `by` | `integer` | no |  |
| `end` | `integer` | no | 0 to 255 |
| `id` | `integer` | no | object ID |
| `ids` | `integer[]` | no | object IDs |
| `start` | `integer` | no | 0 to 255 |

## Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `attribute`, `by`, `end`, `id`, `ids`, `start`. 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": {
    "attribute": {
      "enum": [
        "size",
        "leading",
        "tracking",
        "kerning",
        "baselineShift"
      ],
      "type": "string"
    },
    "by": {
      "type": "integer"
    },
    "end": {
      "description": "0 to 255",
      "type": "integer"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "start": {
      "description": "0 to 255",
      "type": "integer"
    }
  },
  "returns": "kerning at the caret or tracking of the selection, ↑/↓ leading, Shift+↑/↓ baseline shift). The range of `id`, else the text the Type tool has selected (at a caret: kerning steps the character before it, leading its paragraph), else every selected type object → {ids}",
  "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).
