> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# TruncateText - ComfyUI Built-in Node Documentation

> Complete documentation for the TruncateText node in ComfyUI. Learn its inputs, outputs, parameters and usage.

このノードは、指定された最大長でテキストを切り詰めることで短縮します。任意の入力テキストを受け取り、設定した文字数までの最初の部分のみを返します。テキストが特定のサイズを超えないようにするためのシンプルな方法です。

## 入力

| パラメータ  | 説明                                      | データ型   | 必須 | 範囲      |
| ------ | --------------------------------------- | ------ | -- | ------- |
| `text` | 切り詰められるテキスト文字列。                         | STRING | はい | なし      |
| `最大長`  | 最大テキスト長。この文字数を超えた部分は切り捨てられます（デフォルト：77）。 | INT    | はい | 1～10000 |

## 出力

| 出力名      | 説明                                | データ型   |
| -------- | --------------------------------- | ------ |
| `string` | 切り詰められたテキスト。入力の最初の`最大長`文字のみを含みます。 | STRING |

> このドキュメントは AI によって生成されました。エラーを見つけた場合や改善のご提案がある場合は、ぜひ貢献してください！ [GitHub で編集](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/TruncateText/ja.md)

***

**Source fingerprint (SHA-256):** `271a77a910967c4fd86a07485449679fb8db89f6b3f2bf0a8fa2ff224ea2f7b2`
