> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sndbox.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Parse Text

> Split text into lines and basic statistics. Exact configuration, ports, placement, and execution behavior.

**Node type:** `parse_text` · **Version:** `1` · **Category:** Data

Split text into lines and basic statistics. This node does not declare an external side effect.

## Configuration

| Field              | Type    | Default | What it controls                                                                                     |
| ------------------ | ------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `path`             | path    | `""`    | Approved local file or folder path.                                                                  |
| `content`          | string  | `""`    | Literal or mapped content. For parser nodes, mapped content takes precedence over the optional file. |
| `trim`             | boolean | `true`  | Remove leading and trailing whitespace.                                                              |
| `removeEmptyLines` | boolean | `false` | Exclude empty lines from parsed text output.                                                         |

## Workflow JSON

The editor stores this node with the following implemented default configuration:

```json title="Default node configuration" theme={"system"}
{
  "type": "parse_text",
  "version": 1,
  "configuration": {
    "path": "",
    "content": "",
    "trim": true,
    "removeEmptyLines": false
  }
}
```

Values may be entered literally or mapped from an earlier compatible output when the inspector exposes a mapping control. See [Variables and data mapping](/workflows/variables-and-data).

## Inputs

| Port      | Type     | Required | Description |
| --------- | -------- | -------- | ----------- |
| `path`    | `path`   | No       | Text file   |
| `content` | `string` | No       | Text        |

## Outputs

| Port        | Type     | Required | Description |
| ----------- | -------- | -------- | ----------- |
| `text`      | `string` | No       | Text        |
| `lines`     | `array`  | No       | Lines       |
| `lineCount` | `number` | No       | Line count  |

## Where it can run

* Desktop local runner
* Paired self-hosted runner
* Hosted runner

## Test and inspect

Use **Test node** in the editor to preview this step with the current configuration. A full run records resolved inputs, outputs, logs, duration, and any artifacts in the execution inspector. Side-effecting or destructive nodes can require an additional confirmation or approved workflow permission.
