create_slides
Add a slide deck to a space: a real PowerPoint-style presentation (layouts, themes, text, shapes, pictures, tables, charts, speaker notes, transitions) that people edit and present in Artifacts and download as .pptx or PDF. Start it as one title slide, from an outline (markdown: each # heading starts a slide with that title, - items under it are its bullets, indented two spaces per level), or from a file (.pptx, by public URL or base64). Then shape it with the slides_* tools and check it with render_slides. Read guide topic "slides" first.
Parameters
space_idstringrequiredtitlestringrequiredoutlinestringfileobjectShow child attributes
namestringrequiredurlstringbase64stringread_slides
Read a deck as it is now, including people’s edits: every slide with its number (1-based), id, layout, title, hidden flag and speaker notes, and its shapes with their ids (what slides_set_text, slides_select and comment take), kinds, placeholder types, boxes [x, y, w, h] in points and text. Pass slides (numbers) to read only some.
Parameters
item_idstringrequiredslidesinteger[]slides_list_commands
Every command (id, label, ribbon/menu place, shortcut, parameter summary, whether it is enabled now). Filter by a substring of id or label. Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide).
Parameters
item_idstringrequiredfilterstringformat. or slideslides_run_command
Run any command by id with JSON parameters. This is how everything is done: slide.new, shape.insert, text.set, format.bold, shape.fill, design.theme, transition.set, animation.add, table.merge, edit.undo… Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredcommandstringrequiredparamsobjectslides_batch
Run commands in order; stops at the first error unless keepGoing. Returns each result. Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredcommandsobject[]requiredShow child attributes
commandstringrequiredparamsobjectkeepGoingbooleanslides_inspect_document
Slides (index, id, title, layout, shape count, transition, animations, notes), sections, theme, layouts, media and the selection. Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide).
Parameters
item_idstringrequiredslides_inspect_slide
One slide's shapes with ids, kinds, boxes [x,y,w,h], placeholder types, text, fills, tables, charts; plus background, transition, animations, notes. Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide).
Parameters
item_idstringrequiredindexintegerslides_add_slide
Insert a slide after the current one with a layout (title, titleAndContent, sectionHeader, twoContent, comparison, titleOnly, blank, contentWithCaption, pictureWithCaption) and optional title/body text (body: one paragraph per line, leading tabs indent). Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredbodystringlayoutstringtitlestringslides_go_to_slide
Make a slide current (shape commands act on the current slide). Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredindexintegerrequiredslides_add_shape
Insert a preset shape (rect, roundRect, ellipse, triangle, diamond, rightArrow, chevron, star5, heart, cloud, wedgeRectCallout, line, straightConnector1… see shape.presets) at x,y with size w×h, with optional text and fill colour (#RRGGBB or accent1..6). Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredfillstringhnumberrequiredlinestringnonepresetstringrequiredtextstringwnumberrequiredxnumberrequiredynumberrequiredslides_add_text_box
Insert a text box. Height grows to fit the text. Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredalignstringcolorstringhnumbersizenumbertextstringrequiredwnumberrequiredxnumberrequiredynumberrequiredslides_set_text
Replace a shape's text (keeps its first run's formatting). Leading tabs set bullet levels. Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredidintegerrequiredtextstringrequiredslides_insert_picture
Insert a picture from a file path or base64 data, optionally at a box. Give the picture as url (a public address; Artifacts downloads it) or data (base64) with name; path is not available. Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequireddatastringhnumbernamestringpathstringwnumberxnumberynumberurlstringslides_insert_table
Insert a table with rows×cols and optional cell text (data: rows of strings). Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredcolsintegerrequireddatastring[][]hnumberrowsintegerrequiredwnumberxnumberynumberslides_insert_chart
Insert a chart (column, bar, line, pie, doughnut, area, scatter, stackedColumn…) with categories and series. Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredcategoriesstring[]seriesobject[]Show child attributes
namestringvaluesnumber[]requiredtitlestringtypestringslides_select
Select shapes by id (formatting commands then act on them). Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredidsinteger[]requiredslides_pointer
Drive the active tool with pointer events in slide points: down/drag/up/move/doubleclick/contextclick, exactly like the mouse (draws, moves, resizes, rotates, places the caret; contextclick selects like a right click). Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredeventsobject[]requiredShow child attributes
kindstringrequiredmodsobjectShow child attributes
altbooleancmdbooleanshiftbooleanxnumberrequiredynumberrequiredmodsobjectShow child attributes
altbooleancmdbooleanshiftbooleanslides_select_tool
Pick the pointer tool: select, textBox, shape (with preset), pen, highlighter, eraser — or a preset name. Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredpresetstringtoolstringrequiredslides_key
Press a key as on the keyboard: text editing keys (arrows, Backspace, Enter, Tab), nudges, and shortcuts (cmd+B…). Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredkeystringrequiredmodsobjectShow child attributes
altbooleancmdbooleanshiftbooleanslides_type_text
Type text into the text being edited (or into the selected shape). Acts on the deck item_id: slide indexes here are 0-based (slide 1 is index 0); a call naming a shape (id, ids) works on that shape's slide, and new shapes, tables, charts and pictures go on the current slide (slides_go_to_slide). Everyone with the deck open sees the change at once.
Parameters
item_idstringrequiredtextstringrequiredslides_undo
Take back your own latest change to the deck (one tool call); call again for the one before. Only while nobody has changed the deck since: it never takes back a person's or another agent's work. Everyone with the deck open sees it go back.
Parameters
item_idstringrequiredrender_slides
See slides as the audience does (DeckCraft draws them, as in the slide show), with problems per slide: text running out of its box, shapes off the slide, placeholders left empty (they show nothing in the show), slides with nothing on them, slides without a title, pictures without alternative text, text too faint against its background. Pass slides (numbers) to render only some; default all, up to 12 per call. Run it after every change you make and fix what it finds.
Parameters
item_idstringrequiredslidesinteger[]export_slides
Links to download the deck as a PowerPoint file (.pptx) or a PDF (one page per slide). Fetch them with your Artifacts key (Authorization: Bearer).
Parameters
item_idstringrequired