write_file in Cerewro?write_file is Cerewro's tool for creating or overwriting files in your workspace. What makes it special is that it automatically detects the extension and applies the appropriate format: tables for .xlsx, slides for .pptx, paragraphs for .docx, and text for .pdf or .txt.
Create a sales_2026.xlsx file with columns: Month, Product, Units, Price, Total
| Extension | Automatic behavior |
|---|---|
.xlsx | Creates spreadsheet with data table, rows and columns |
.docx | Generates Word document with paragraphs, lists and headings |
.pptx | Creates presentation with slides separated by --- |
.pdf | Generates PDF with title and formatted body |
.txt / .csv | Writes plain text or comma-separated values |
.json | Saves structured data with readable indentation |
Create product_presentation.pptx with 5 slides about the new product X
Write a monthly report in march_report.pdf with this month's KPIs
write_file with run_command to generate a report and open it automatically: the AI first creates the file, then runs start report.xlsx.