truncate_persian_text
Shorten Persian text to a maximum length while preserving words, ZWNJ-joined terms, surrogate pairs, and diacritics, with optional word or character mode and custom ellipsis.
Instructions
Truncate text to maxLength (ellipsis included) without breaking words, ZWNJ-joined words, surrogate pairs or diacritics. mode 'word' (default) or 'char'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"maxLength": "<maxLength>"
},
"name": "truncate_persian_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| text | Yes | ||
| ellipsis | No | ||
| maxLength | Yes |