export_data_table
Export a lighting data table (fixtures, looks, cue lists) as CSV or Excel for backup, analysis, or reporting. CSV returns inline text; Excel writes a file and returns its path.
Instructions
Export one data table (fixtures, looks, cue lists, look details, ...) as CSV or Excel.
format "csv" (default): returns the CSV text inline so you can read it. Large exports are truncated (default 50000 characters), preferably at a line break, with truncated=true and a note. A cut is not guaranteed to fall between complete rows (a very long first line, or a quoted field containing line breaks, may be split); pass outputDirectory to also save the full file, or raise maxCharacters.
format "xlsx": writes the Excel file to disk and returns its path, row count and size (no file content in the response).
Files are written to outputDirectory, else the LACYLIGHTS_EXPORT_DIR environment variable, else a private lacylights-exports folder in the system temp directory. Existing files are never overwritten; a numeric suffix is added instead. Use list_data_export_tables to see the tables and which need scopeId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table to export (case-insensitive): FIXTURE_TYPES, FIXTURE_LIBRARY, FIXTURES, LOOKS, LOOK_DETAILS, EFFECTS, LOOK_BOARD_ENTRIES, CUE_LISTS or CUE_LIST_DETAILS. See list_data_export_tables for what the connected backend supports. | |
| format | No | "csv" (default) or "xlsx", case-insensitive. csv returns text inline; xlsx writes a file and returns its path. | csv |
| scopeId | No | Look ID for LOOK_DETAILS, cue list ID for CUE_LIST_DETAILS, optional look board ID for LOOK_BOARD_ENTRIES. | |
| projectId | No | Project ID. Required for every table except FIXTURE_LIBRARY. | |
| maxCharacters | No | CSV only (ignored for xlsx): maximum characters returned inline (default 50000). | |
| outputDirectory | No | Directory to write the file to (created if missing). For CSV, setting this also saves the full untruncated file. |