apply_view_sorts
Apply sort conditions to a view. Replace existing sorts, append new ones, or clear all sorts.
Instructions
Apply sort conditions to a view. Default mode replaces all existing sorts — pass an empty array with operation="replace" to clear. Use operation="append" to add new sorts on top of the view's existing sort stack without rewriting them.
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": {
"appId": "<appId>",
"viewId": "<viewId>",
"sorts": "<sorts>"
},
"name": "apply_view_sorts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The Airtable base/application ID | |
| debug | No | When true, include raw Airtable response in output for diagnostics | |
| sorts | Yes | Array of sort conditions. Empty array [] clears all sorts when operation="replace". | |
| viewId | Yes | The view ID (e.g. "viwXXX") | |
| operation | No | How the given sorts interact with existing sorts. "replace" (default) overwrites; "append" adds the provided sorts after the existing sort stack (secondary priority). |