create_office_document
Create new Word, Excel, or PowerPoint files from structured content blocks (headings, paragraphs, tables, images, math formulas) with LaTeX markup. Saves to disk at a specified path.
Instructions
Create a NEW Word (.docx), Excel (.xlsx), or PowerPoint (.pptx) file from a structured content list of typed blocks (heading, paragraph, formula, table, image), with LaTeX-style markup (\bfseries{bold}) and math formulas (\frac{a}{b}). Writes the file to output_path (default: a temp file in the system temp directory) and it persists on disk. To edit an existing file, use edit_office_document instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Global document style. | |
| format | Yes | Document format: - "docx": Word document — reports, letters, contracts, proposals - "xlsx": Excel workbook — spreadsheets, data tables, charts - "pptx": PowerPoint — slides, presentations, pitch decks | |
| content | Yes | Ordered list of content blocks. | |
| options | No | Tool options. | |
| metadata | No | Document metadata (title, author, etc.). | |
| output_path | No | Output file path. | |
| template_data | No | Key-value pairs to fill {{placeholder}} in content. |