export_form_csv
Export a form's submission data as CSV. Save to a file or return text, with truncation for large exports.
Instructions
Export a form's submission data as CSV.
The spec's summary describes the response as a CSV text file with semicolon (;) as the delimiter. When output_path is provided, the file is written to disk (mode 0600 for a new file) and the result reports the path, byte count and media type. When output_path is omitted, the text is returned as JSON with a size signal and truncation flag. The result is capped at max_chars (default 1,000,000) to bound context size: check the truncated field to see if the full export was cut.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes | The form's numeric ID. | |
| max_chars | No | Maximum characters to return when output_path is omitted. Defaults to this MCP server's configured limit (1,000,000). When the cap is reached, the text is cut at the last complete newline before the limit and truncated is set to true. The caller may raise this limit arbitrarily by passing a larger value. Ignored when output_path is provided. | |
| output_path | No | Destination file path. When provided, the CSV is written to disk and path/bytes/mediaType are returned instead of the text. The path may contain ~ for the home directory and may be relative (it will be resolved to an absolute path). An existing file is overwritten and its mode is preserved; a new file is created with mode 0600. | |
| optimize_for_large_data | No | Request optimization for large datasets. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |