Text Utilities
text_toolsText utilities. action is one of: stats (word, character and estimated token counts), slugify, case (camel/snake/kebab/title...), base64 encode/decode, url encode/decode, html_escape, strip_html, extract_urls, dedupe_lines, sort_lines, wrap (width), diff (text=[a, b], line diff). Returns the transformed text or the stats. Use it for deterministic text transforms. Limits: plain text input; large inputs are capped by the request size limit.
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": "text_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | base64: 'url' for base64url | |
| text | Yes | input text (diff: [a, b]) | |
| width | No | ||
| action | No |