format_truncate
Truncate text to a maximum length.
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_truncate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to truncate | |
| length | No | Maximum length | |
| suffix | No | Suffix to add when truncated | ... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| output | Yes | ||
| truncated | Yes | ||
| output_length | No | ||
| original_length | No |