sort_lines
Sort lines of text ascending or descending with case-insensitive, locale-aware, natural order (line2 before line10), deduplication, line trimming, and empty-line removal.
Instructions
Sort lines of text. Supports asc/desc, case-insensitive, locale-aware collation, natural-sort (line2 before line10), dedupe, line-trim and empty-line drop.
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": "sort_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| order | No | asc | |
| dedupe | No | ||
| locale | No | ||
| natural | No | ||
| drop_empty | No | ||
| trim_lines | No | ||
| case_sensitive | No |