export_records
Export over 50 Gadget app records to CSV or JSON for analysis or sharing; automatic paging; returns the file path, row count, columns, and preview. Redaction settings apply.
Instructions
Export many records (beyond query_records' 50) to a CSV or JSON file on this machine for analysis or sharing. Pages through automatically. Returns the file path, row count, columns and a short preview. Redaction settings apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort value, e.g. [{ createdAt: { sortOrder: "Descending" } }] | |
| model | Yes | Model name in singular camelCase, e.g. shopifyOrder | |
| fields | No | Field selection (default: all scalar fields). Nested fields become dot-named CSV columns, e.g. "* customer { email }" → customer.email | |
| filter | No | Filter value — use introspect_filters for valid shapes | |
| format | No | File format (default csv) | |
| filename | No | Optional file name (no directories); saved in the export folder (GADGET_EXPORT_DIR or ~/gadget-mcp-exports) | |
| max_records | No | Maximum records to export (default 10000, max 100000) |