truncate_text
Truncate text to a specified maximum length with an optional ellipsis. Control exact character count and append '...' as needed.
Instructions
Truncate text to specified length with optional ellipsis.
Parameters:
text — Text to truncate.
length — Maximum length (default: 100).
ellipsis — Append '...' (default: true).
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| length | No | ||
| ellipsis | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |