Skip to content

Commit d58fd71

Browse files
committed
fix(excel): preserve agent arguments and expose array schemas
1 parent daccbe7 commit d58fd71

10 files changed

Lines changed: 422 additions & 98 deletions

File tree

‎apps/docs/content/docs/integrations/microsoft_excel.mdx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Add new rows to a Microsoft Excel table
5757
| `driveId` | string | No | The ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses the signed-in user’s default OneDrive. Excel workbook APIs require a business account. |
5858
| `tableName` | string | Yes | The name of the table to add rows to \(e.g., "Table1", "SalesTable"\) |
5959
| `index` | number | No | Zero-based insertion index. Omit to append at the end. |
60-
| `values` | json | No | Data rows in table column order, without headers \(e.g., \[\["Value", 30\]\]\). Object rows are also accepted in key order for compatibility. Omit to add a blank row. |
60+
| `values` | array | No | Data rows in table column order, without headers \(e.g., \[\["Value", 30\]\]\). Object rows are also accepted in key order for compatibility. Omit to add a blank row. |
6161

6262
#### Output
6363

@@ -345,7 +345,7 @@ Update Table Row in a Microsoft Excel workbook.
345345
| `sessionId` | string | No | Workbook session ID from Create Session. Omit for a sessionless request that saves changes. |
346346
| `tableName` | string | Yes | Table ID or name within the workbook. |
347347
| `index` | number | Yes | Zero-based table row index. Indexes can change when rows are inserted or deleted. |
348-
| `values` | json | Yes | Exactly one row as a two-dimensional array, in table column order. Use null to leave a cell unchanged. |
348+
| `values` | array | Yes | Exactly one row as a two-dimensional array, in table column order. Use null to leave a cell unchanged. |
349349

350350
#### Output
351351

@@ -496,18 +496,18 @@ Write data to a specific sheet in a Microsoft Excel spreadsheet
496496

497497
| Parameter | Type | Required | Description |
498498
| --------- | ---- | -------- | ----------- |
499-
| `formulas` | json | No | A1-style formulas as a two-dimensional array. Null leaves a cell unchanged. |
500-
| `formulasLocal` | json | No | A1-style formulas in the user locale as a two-dimensional array. Null leaves a cell unchanged. |
501-
| `formulasR1C1` | json | No | R1C1-style formulas as a two-dimensional array. Null leaves a cell unchanged. |
502-
| `numberFormat` | json | No | Excel number format codes as a two-dimensional array. Null leaves a cell unchanged. |
499+
| `formulas` | array | No | A1-style formulas as a two-dimensional array. Null leaves a cell unchanged. |
500+
| `formulasLocal` | array | No | A1-style formulas in the user locale as a two-dimensional array. Null leaves a cell unchanged. |
501+
| `formulasR1C1` | array | No | R1C1-style formulas as a two-dimensional array. Null leaves a cell unchanged. |
502+
| `numberFormat` | array | No | Excel number format codes as a two-dimensional array. Null leaves a cell unchanged. |
503503
| `columnHidden` | boolean | No | Hide all columns in the target range. |
504504
| `rowHidden` | boolean | No | Hide all rows in the target range. |
505505
| `sessionId` | string | No | Workbook session ID from Create Session. Omit for a sessionless request that saves changes. |
506506
| `spreadsheetId` | string | Yes | The ID of the spreadsheet/workbook to write to \(e.g., "01ABC123DEF456"\) |
507507
| `driveId` | string | No | The ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses the signed-in user’s default OneDrive. Excel workbook APIs require a business account. |
508508
| `sheetName` | string | Yes | The name of the sheet/tab to write to \(e.g., "Sheet1", "Sales Data"\) |
509509
| `cellRange` | string | No | The cell range to write to \(e.g., "A1:D10", "A1"\). Defaults to "A1" if not specified. |
510-
| `values` | json | No | The data to write as a 2D array \(e.g. \[\["Name", "Age"\], \["Alice", 30\], \["Bob", 25\]\]\) or array of objects. |
510+
| `values` | array | No | The data to write as a 2D array \(used exactly as provided\) or array of objects. For object rows, their keys become a header row. Use a 2D array to write data without added headers. |
511511

512512
#### Output
513513

@@ -668,7 +668,7 @@ Sort a range or table by one or more fields in a Microsoft Excel worksheet
668668

669669
| Parameter | Type | Required | Description |
670670
| --------- | ---- | -------- | ----------- |
671-
| `sortFields` | json | No | Sort conditions \[\{key, ascending, sortOn, color, dataOption, icon\}\]. Overrides sortColumn/sortAscending; ascending defaults to true for each condition; key is a zero-based offset, sortOn is Value, CellColor, FontColor, or Icon; dataOption is Normal or TextAsNumber; icon contains set and index. |
671+
| `sortFields` | array | No | Sort conditions \[\{key, ascending, sortOn, color, dataOption, icon\}\]. Overrides sortColumn/sortAscending; ascending defaults to true for each condition; key is a zero-based offset, sortOn is Value, CellColor, FontColor, or Icon; dataOption is Normal or TextAsNumber; icon contains set and index. |
672672
| `sortMethod` | string | No | Chinese character ordering: PinYin or StrokeCount. |
673673
| `orientation` | string | No | Rows \(default\) or Columns. Applies only to range sorts. |
674674
| `sessionId` | string | No | Workbook session ID from Create Session. Omit for a sessionless request that saves changes. |

0 commit comments

Comments
 (0)