text_truncate
Truncate to N chars/words/sentences at a real boundary (cut|word|sentence strategy) with configurable ellipsis — the exact tool behind every 'summarize in 200 words' that a model overshoots. Free.
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>",
"max": "<max>"
},
"name": "text_truncate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | Yes | ||
| text | Yes | ||
| unit | No | chars | |
| ellipsis | No | … | |
| strategy | No | word |