sort_range
Sort a specified range in a Google Sheet using custom sort criteria (column, order, etc.) with the Sheets API.
Instructions
Sort a range using Sheets API SortSpec objects.
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": {
"spreadsheet_id": "<spreadsheet_id>",
"range": "<range>",
"sort_specs": "<sort_specs>"
},
"name": "sort_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| sort_specs | Yes | ||
| spreadsheet_id | Yes |