apply_view_sorts
Set the sort order of an Airtable view. Replace all existing sorts or append new conditions. Clear all sorts by passing an empty array.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The Airtable base/application ID | |
| viewId | Yes | The view ID (e.g. "viwXXX") | |
| sorts | Yes | Array of sort conditions. Empty array [] clears all sorts when operation="replace". | |
| 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). | |
| debug | No | When true, include raw Airtable response in output for diagnostics |