format_format_truncate
Truncate text to a specified maximum character length, appending an optional suffix (default '…') when the text exceeds the limit.
Instructions
[format] Truncate text to max_length, appending suffix (default '…').
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>"
},
"name": "format_format_truncate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| max_length | No | ||
| suffix | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |