pdfpeek: build an Excel workbook from JSON
build_xlsx_workbookConvert JSON sheets and rows into a styled .xlsx workbook with typed columns for Excel reports or data exports.
Instructions
pdfpeek: Build a styled Excel workbook from JSON sheets, columns and rows. To read a workbook back use convert_excel_to_json; for slides use build_pptx_deck. Rows are arrays or objects; a column type (string, number, integer, date, datetime, boolean, currency, percent) sets the format. Strings are always stored as text, never as formulas. At most 20 sheets, 50,000 cells, 32,767 characters per cell; sheet names of at most 31 characters without [ ] : * ? / . Over a limit is a 422 (not charged). Typically under 1 s. Price: USD 0.005. No free tier. Docs: https://tanod.dev/learn/xlsx-build-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window. | base64 |
| sheets | Yes | The sheets, in order: 1-20, each with a unique name, optional typed columns and rows (at most 50,000 cells in all). | |
| filename | No | Name of the returned file (default workbook.xlsx; .xlsx is added when missing; only letters, digits, space, dot, dash and underscore are kept). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| rows | No | ||
| cells | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| sheets | No | ||
| operation | No | ||
| output_bytes | No | ||
| sheet_summary | No | ||
| formula_like_strings | No |