sort_file_content
Organize file content by sorting lines alphabetically or numerically, with options to reverse order and remove duplicates.
Instructions
Sort the lines of a file. Supports ascending/descending, numeric sorting, and duplicate removal.
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": {
"path": "<path>"
},
"name": "sort_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to sort | |
| order | No | Sort order | asc |
| numeric | No | Sort numerically instead of alphabetically | |
| unique | No | Remove duplicate lines |