truncate_text
Truncate text to a maximum length, appending an ellipsis if desired. Control the exact character count and choose whether to add '...'.
Instructions
Truncate text to specified length with optional ellipsis.
Parameters:
text — Text to truncate.
length — Maximum length (default: 100).
ellipsis — Append '...' (default: true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| length | No | ||
| ellipsis | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |