---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/text_analysis/variables/textLinesTool.md
description: Operate on text treated as a list of lines.
---

# Variable: textLinesTool

```ts
const textLinesTool: Tool<SpooledArtifact>;
```

Defined in: [batteries/tools/text\_analysis/index.ts:101](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/tools/text_analysis/index.ts#L101)

Operate on text treated as a list of lines.

## Remarks

Operations: `sort`, `sort_desc`, `reverse`, `deduplicate`, `filter_empty`, `trim_each`,
`number` (prefix each line with `1.`, `2.`, …), `count`. Sort and deduplicate respect the
optional `case_insensitive` flag.
