text_transform
Apply an ordered sequence of text transformations—case conversion, line cleanup, sorting, wrapping, Unicode normalization, accent removal, and line-ending fixes—to text or files.
Instructions
Text ops in order: case (upper lower title sentence camel pascal snake kebab constant slug), trim_lines trim_trailing dedupe_lines(_ci) sort_lines(_desc) sort_by_length reverse_lines shuffle_lines number_lines remove_blank_lines squeeze_blank_lines count_lines, wrap:N unwrap collapse_spaces, nfc nfkc nfd strip_accents ascii remove_invisible smart_quotes_to_ascii, tabs_to_spaces lf crlf reverse trim.
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": {
"ops": "<ops>"
},
"name": "text_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| path | No | or a file | |
| text | No | ||
| in_place | No | ||
| out_path | No | ||
| overwrite | No |