truncate_2
Truncate text to a specified 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": "truncate_2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to truncate | |
| length | No | Maximum length | |
| suffix | No | Suffix to add if truncated | ... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original | Yes | ||
| truncated | Yes | ||
| was_truncated | Yes | ||
| original_length | Yes | ||
| truncated_length | Yes |