Artiwright
v0.13.20Create PowerPoint decks and Excel workbooks with live charts, tables and formulas.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
artiwright_run Run deck or workbook code
Runs JavaScript against a document in the session and saves it. For a workbook (kind "workbook") the code has `workbook` (a Workbook: workbook.sheets.add("Model"), sheet.range("A1").values = [[…]], range.formulas = "=B2*1.1", format, tables, conditionalFormats, validations, charts) and `xl` (the spreadsheet library) in scope; formulas compute as you go. For a deck the code is the body of an async function with `deck` (a Presentation), `h`, `compose`, `createRef`, the layout recipes (TitleSlide, SectionDivider, TitleBullets, TwoColumns, KpiCards, BigNumber, Quote, ImageText, ChartTakeaway, Co…
| Parameter | Type | Description |
|---|---|---|
code * | string | Body of an async function. `return` a value to see it. |
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
kind | string | What a new document is: "presentation" (default) or "workbook". An existing document keeps its kind. |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
size | string | Slide size when the call creates the deck. |
theme | string | Theme preset when the call creates the document: classic, spruce, ledger, studio, coast. Ignored when the app set a theme (artiwright_status shows it) or the document exists. |
artiwright_apply Apply JSON ops
Changes a deck with JSON ops instead of code, as one undo step. Each op is { target, op, args }: target is "deck", an anchor ("sl_…", "sh_…") or a dotted path ("sl_….shapes"); op is a method (add, update, replaceText, remove, connect …) or "=name" to set a property. { "$result": n } in args or as the target stands for what op n returned. Example: [{ "target": "deck.slides", "op": "add", "args": [{ "layout": "title-only", "title": "Q3" }] }, { "target": [{ "$result": 0 }, "shapes"], "op": "add", "args": [{ "frame": { "x": 80, "y": 200, "w": 400, "h": 80 }, "text": "Hi" }] }].
| Parameter | Type | Description |
|---|---|---|
ops * | array | The ops, in order. |
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
artiwright_inspect Inspect a deck
Returns the deck as NDJSON records with anchors: deck, slide, text, shape, image, table, chart, notes, thread. Text records carry the box, wrapped line count, font size and an overflow flag. Filter with kind, slide, search or target (records around an anchor).
| Parameter | Type | Description |
|---|---|---|
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
kind | string | Comma-separated kinds, e.g. "slide,text". |
maxChars | number | Output budget (default 12000). |
range | string | Workbooks: only cells and formulas in this range, e.g. "A1:F20". |
search | string | Case-insensitive regex over the records. |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
sheet | string | Workbooks: one sheet by name. |
slide | string | number | Slide anchor or 1-based number. |
target | string | An anchor: return the records around it. |
artiwright_render Render slides
Renders slides as PNG images so you can see them. Without `slides` it returns one contact sheet of the whole deck; with slide numbers it returns those slides (at most 6).
| Parameter | Type | Description |
|---|---|---|
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
range | string | Workbooks: the cells to draw, e.g. "A1:H30" (default: everything used). |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
sheets | array | Workbooks: sheet names (default every sheet). |
slides | array | 1-based slide numbers. |
artiwright_lint Lint a deck
Checks the deck on the rendered layout: text overflow, off-slide or overlapping elements, small text, contrast, placeholder text, distorted or blurry images, fonts, chart titles, connectors. Each finding has the slide, the anchor to fix and a suggested fix.
| Parameter | Type | Description |
|---|---|---|
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
rules | string | Rule ids or prefixes, e.g. "text/,a11y/contrast". |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
severity | string | |
slide | string | number |
artiwright_help API help
Looks up the Artiwright API: a path ("slide.charts.add", "ShapeOptions.textBox", "KpiCards"), a value list ("layouts", "geometries", "colors", "lintRules"), or a search. "skill presentations" (or "skill spreadsheets") returns the full working guide: read it before your first document. "guides" lists the skill's guides and "guide charts" returns one (charts, tables, diagrams, code-and-math, editing, storytelling, review, …). Ask for several topics at once, comma-separated ("KpiCards, ChartTakeaway, guide charts"). Call it with no query for an overview.
| Parameter | Type | Description |
|---|---|---|
maxChars | number | |
query | string | |
search | string | Regex over the whole catalog. |
artiwright_finalize Finalize and publish
Checks the real .pptx (or .xlsx) and saves it into the user's folder (/tmp): Open XML validation, package integrity, your requirements, chart data, lint errors (unless waived) and a re-read of the written file. Never overwrites. Returns the path, sha256 and what blocked publication, if anything.
| Parameter | Type | Description |
|---|---|---|
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
file | string | File name that says what it is, e.g. "q3-review.pptx" or "model.xlsx", or a path where the user asked for it (relative to their folder, or absolute). Default "<document>-v<version>.pptx" (or .xlsx). |
requirements | object | |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
artiwright_import Import a CSV or table file into a workbook
Loads a data export (CSV, TSV, a Markdown or HTML table) into a sheet of a workbook in the session, as typed values: numbers, percentages, currency and dates become real values in the format they were written in, and the rows become an Excel table you can use in formulas (SUMIFS(Sales[Amount], …)). Use it instead of reading a file and typing its rows into code. Creates the workbook if it doesn't exist; call it once per file. Give an absolute `path`, or `content` as text.
| Parameter | Type | Description |
|---|---|---|
at | string | Top-left cell. Default "A1". |
content | string | The file's text, instead of a path. |
dates | string | How to read dates like 03/04/2026: month first ("mdy", default) or day first ("dmy"). ISO dates (2026-03-04) always work; "iso" means the default. |
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
path | string | Absolute path of the .csv, .tsv, .txt, .md or .html file. |
replace | boolean | Empty the sheet first, to load a newer version of the same data over the old one. Default false. |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
sheet | string | Sheet to write into (created if missing). Default: the file's name. |
table | boolean | string | Make the rows an Excel table: true (named after the file, the default), a name, or false. |
theme | string | Theme preset when the call creates the workbook: classic, spruce, ledger, studio, coast. |
artiwright_open Open an existing deck, workbook or template
Opens an existing .pptx or .xlsx (or a .potx / .xltx template) into the session as a document, to edit it or to build on it. Give an absolute `path`, or the file's `content` in base64. A deck is the `deck` variable in artiwright_run, a workbook the `workbook` variable. With template: true a deck starts without the file's slides; slides.add({ layout }) then uses the template's own layouts (by key such as "title-and-content" or by the name PowerPoint shows). Edits keep everything you do not change; artiwright_finalize writes a new file, never the original.
| Parameter | Type | Description |
|---|---|---|
content | string | The file's bytes in base64, instead of a path. |
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
path | string | Absolute path of the .pptx, .potx, .xlsx or .xltx to open. |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
template | boolean | Decks: start without the file's slides, keeping its theme, masters and layouts. |
artiwright_status Session status
Lists the session's documents with slide counts, versions, undo state, themes and published files, and the theme the app set for new documents.
| Parameter | Type | Description |
|---|---|---|
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
artiwright_undo Undo
Undoes the last change to a document (one artiwright_run or artiwright_apply call is one step).
| Parameter | Type | Description |
|---|---|---|
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |
artiwright_redo Redo
Redoes the last undone change to a document (one artiwright_run or artiwright_apply call is one step).
| Parameter | Type | Description |
|---|---|---|
document | string | Document name inside the session. Default "deck" (or "workbook" when the session only has a workbook). |
session | string | Session id (one per chat or task). Default "2026-12-02-0658-217e". |