---
title: "story.get: Get Story — Layout kit command — Kition"
description: "Answers a story's text, frames, paragraphs, direction and whether it is overset; the way to read text."
canonical: "https://developer.kition.ai/docs/kits/layout/commands/story.get"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/layout/commands/story.get](https://developer.kition.ai/docs/kits/layout/commands/story.get)

# story.get

**Get Story.** Answers a story's text, frames, paragraphs, direction and whether it is overset; the way to read text.

- Kit: Layout 0.1.0 (.klayout); reference: [Layout kit commands](https://developer.kition.ai/docs/kits/layout.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `frame` | `integer` | no | one of several alternative parameters |
| `lines` | `integer` | no | read by the command beside its listed parameters |
| `story` | `any` | no | one of several alternative parameters |

## Call through layout_run

```text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "story.get" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `frame`, `lines`, `story`. layout_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `direction` | `string` | no |  |
| `frames` | `number[]` | no |  |
| `id` | `number` | no |  |
| `length` | `number` | no |  |
| `lines` | `number` | no |  |
| `overset` | `any` | no |  |
| `paragraphs` | `number` | no |  |
| `text` | `string` | no |  |
| `vertical` | `boolean` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "direction": {
      "type": "string"
    },
    "frames": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "id": {
      "type": "number"
    },
    "length": {
      "type": "number"
    },
    "lines": {
      "type": "number"
    },
    "overset": {},
    "paragraphs": {
      "type": "number"
    },
    "text": {
      "type": "string"
    },
    "vertical": {
      "type": "boolean"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "frame": {
      "description": "one of several alternative parameters",
      "type": "integer",
      "x-khp-types": [
        "Item"
      ]
    },
    "lines": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    },
    "story": {
      "description": "one of several alternative parameters",
      "x-khp-types": [
        "Story"
      ]
    }
  },
  "returns": "text, frames, paragraphs, vertical, overset",
  "type": "object"
}
```

Generated from the command list of @kition/layout-darwin-arm64@0.1.0 and the kit itself (layout_commands through @kition/cli@0.1.1, built from KitionAI/kition-layout@8767a18).
