Get Table Structure & Data
openl_get_tableGet a table's raw 2D cell matrix to read authoritative workbook content; slice large tables by rows and optionally include Excel styles.
Instructions
Get a table as its authoritative RawSource 2D cell matrix. Typed/parsed table views are intentionally unsupported because they are incomplete and cannot safely round-trip workbook content. startRow/maxRows read a large table in row slices (a windowed response carries totalRows), and styles=true adds each cell's Excel style. A window cannot replace the whole table: openl_update_table rejects totalRows and independently refuses a source with fewer rows than the live table, so removing the marker cannot erase omitted rows. For a large table whose complete response becomes a preview, use the narrow raw table action tools instead. A table id changes when an edit relocates the table; stale ids produced by this server are resolved automatically, otherwise refresh ids with openl_list_tables().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| styles | No | If true, each raw cell carries its Excel style (background/font colour, bold/italic/underline, alignment, indent, borders). | |
| maxRows | No | Maximum number of source rows, counted from startRow; omit to read to the end. A windowed response carries totalRows. | |
| tableId | Yes | Table identifier - unique ID assigned by OpenL Studio (e.g., 'calculatePremium_1234'). VOLATILE: derived from the table's location, so it changes when an edit relocates the table (it had no room to grow in place) — use the 'tableId' returned by the latest openl_update_table/openl_append_table response, or refresh via openl_list_tables(). | |
| startRow | No | Zero-based index of the first source row; omit to start at the top. Combine with maxRows to read a large table in slices. | |
| projectId | Yes | Project ID returned by backend. Use the exact 'projectId' value from openl_list_projects() response without modification or reformatting. | |
| response_format | No | Response format: 'json' for structured, round-trippable data (default), 'markdown' for human-readable output, 'markdown_concise' for a brief summary (1-2 paragraphs), or 'markdown_detailed' for full details with context | json |