smartsuite_create_view
Create a view in a SmartSuite application by choosing a mode like grid, kanban, or calendar. Validates fields and filters, returning a dry-run preview until confirmed.
Instructions
Create a view (report) in an application. Requires readwrite/admin mode AND SMARTSUITE_ENABLE_SCHEMA_WRITE=true. Supply applicationId, label (must be unique — the tool checks and suggests an alternative if taken), and viewMode (grid, card, kanban, calendar, timeline, gantt, chart, map). Optionally set the initial configuration: visibleFields (array of field slugs), filters (array of {field, comparison, value}) with filterOperator ("and"/"or"), sort (array of {field, direction:"asc"|"desc"}), and groupBy (array of {field,...}). TWO MODES NEED A FIELD BINDING OR THEY OPEN UNUSABLE: a calendar requires dateField (a date-type slug) — without it the view is created, reports success, and shows nothing; a kanban requires stackBy (a status or single-select slug) for its columns — groupBy is a different axis and leaves the board with no columns (swimlaneBy sets the optional second axis). Both are reported back on the view and a missing one returns a warning. Omit config to create a view with SmartSuite defaults. Field slugs are validated against the schema. Dry-run preview unless confirm:true. (For forms use smartsuite_create_form; dashboards are separate.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Optional: sort rules [{field, direction:"asc"|"desc"}]. | |
| label | Yes | The view name (must be unique within the application). | |
| confirm | No | Set true to create; otherwise returns a dry-run preview. | |
| filters | No | Optional: filter conditions [{field, comparison, value}]. | |
| groupBy | No | Optional: group-by rules [{field, ...}]. | |
| stackBy | No | KANBAN only, and required for one to work: the status/single-select field slug whose values become the columns. Not the same as groupBy. | |
| viewMode | Yes | View type: grid, card, kanban, calendar, timeline, gantt, chart, or map. | |
| dateField | No | CALENDAR only, and required for one to work: the date-type field slug records are placed on. Omitting it creates a blank calendar. | |
| swimlaneBy | No | KANBAN only: optional second axis (rows). | |
| description | No | Optional view description. | |
| applicationId | Yes | The application ID the view belongs to. | |
| visibleFields | No | Optional: field slugs to show, in order. | |
| filterOperator | No | Combine filters with AND or OR (default and). |