sort_range
Sort a bounded range in a Google Sheet by named columns, with optional sort order and header row preservation.
Instructions
Sort a bounded range by named columns while preserving header rows.
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_columns": "<sort_columns>"
},
"name": "sort_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| sort_order | No | ASCENDING | |
| header_rows | No | ||
| sort_columns | Yes | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||