> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 字符串（PrimitiveString）

<div class="node-meta"><code>PrimitiveString</code><span>utilities/primitive</span><span>角色：文本工具</span></div>

Text 节点提供了一种在工作流中输入和传递文本数据的简单方式。它接收一个文本字符串作为输入，并原样输出相同的字符串，因此非常适合为其他需要字符串参数的节点提供文本输入。

## 参数

| 参数      | 类型     | 默认 / 范围 | 说明     |
| ------- | ------ | ------- | ------ |
| `value` | STRING | 文本      | 常量值输出。 |

## 输出

| 输出     | 类型     | 说明 |
| ------ | ------ | -- |
| STRING | STRING | 文本 |

## 怎么接

- **上游**：PrimitiveString / 上一级文本节点
- **下游**：CLIPTextEncode.text / SaveText / 其他文本节点
- **接线**：纯文本处理：上游接 PrimitiveString 或上一级文本节点，输出接 CLIPTextEncode 的 `text`、SaveText 或文件名参数，用来批量生成/改写提示词。

## 使用案例

从 `value`（文本） 开始填就能跑起来。典型接法：`PrimitiveString` → 本节点 → `CLIPTextEncode.text`。输出类型是 STRING，只能接同类型的输入端口，颜色对不上就是接错了。

## 端口与连线示意

![PrimitiveString 端口与连线示意](/svg/PrimitiveString.svg)

## 同类节点

[布尔值](/nodes/10/PrimitiveBoolean.md) · [边界框](/nodes/10/PrimitiveBoundingBox.md) · [浮点数](/nodes/10/PrimitiveFloat.md) · [整数](/nodes/10/PrimitiveInt.md) · [字符串（多行）](/nodes/10/PrimitiveStringMultiline.md)
