excel_sort_range
Sorts a defined Excel worksheet range by a chosen column in ascending or descending order, organizing rows in an open workbook.
Instructions
Sort range by column
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": {
"filename": "<filename>",
"worksheet": "<worksheet>",
"startCell": "<startCell>",
"endCell": "<endCell>",
"sortColumn": "<sortColumn>"
},
"name": "excel_sort_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endCell | Yes | Range end (e.g., D100) | |
| filename | Yes | Opened workbook name | |
| ascending | No | Ascending (true) or descending | |
| startCell | Yes | Range start (e.g., A1) | |
| worksheet | Yes | Worksheet name | |
| sortColumn | Yes | Column number (1-based) |