SlideCraft

v0.7.7
io.github.eiler2005/slidecraft Checked 1 day ago Published 1 month ago

Builds editable PowerPoint, PDF and HTML decks from a deck spec, with fit, source and visual checks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_exhibits

Route the intended relationship (comparison, process, architecture, bridge) to existing layout contracts. Storyline and theme are independent choices.

ParameterTypeDescription
relationshipstringOptional semantic relationship id

list_components

Existing native body exhibits with schemas and examples. Assemble complementary exhibits using layout: composition; keep title, sources and page numbering in the shared frame.

ParameterTypeDescription
layoutstringOptional component/layout id

guide

How to make a deck with SlideCraft: the steps, the four checkpoints and the rules. Call this first.

list_decks

Decks in the workspace

new_deck

Start a deck from a goal in plain words; creates brief.yaml and deck.yaml in the workspace

ParameterTypeDescription
goal *stringWhat the deck must achieve, e.g. "The board approves entry into Germany"
audiencestringWho it is for

suggest_templates

Three template options (storyline × theme) and recommended outputs for the deck brief

ParameterTypeDescription
deck *stringDeck folder name or path

choose_template

Record the chosen option (A, B or C) or an explicit storyline and theme

ParameterTypeDescription
deck *stringDeck folder name or path
optionstringA, B or C
storylinestringstoryline id
themestringtheme id

scaffold

Create the ghost deck (one slide per storyline slot) from the chosen template

ParameterTypeDescription
deck *stringDeck folder name or path

read_deck

The deck.yaml text

ParameterTypeDescription
deck *stringDeck folder name or path

write_deck

Replace deck.yaml with new YAML, then validate it and return the diagnostics

ParameterTypeDescription
deck *stringDeck folder name or path
yaml *stringThe complete deck.yaml

list_layouts

Slide layouts and their content contracts (JSON Schema with limits and an example). Pass a layout id for one.

ParameterTypeDescription
layoutstringlayout id, e.g. chart-takeaway

check

Lay out the deck and run every check (fit, titles, sources, consistency, contrast); no files written

ParameterTypeDescription
deck *stringDeck folder name or path

fix_tasks

Fields that are too long, each with an exact character budget

ParameterTypeDescription
deck *stringDeck folder name or path

apply_fixes

Write rewrites by JSON pointer (comments kept) and re-check

ParameterTypeDescription
deck *stringDeck folder name or path
fixes *array

preview_slide

Inspect a slide: resvg previews the Scene; pptx-convert renders the actual PPTX through installed Office. Scene previews do not certify PowerPoint fidelity.

ParameterTypeDescription
deck *stringDeck folder name or path
slide *stringslide id or number
rendererstringDefault resvg; pptx-convert requires Office and Poppler

build

Build the deck files (pptx, pdf, html, onepager, docx, png); returns the paths

ParameterTypeDescription
deck *stringDeck folder name or path
formatsstringcomma-separated, e.g. "pptx,pdf"

ingest

Add client documents (PDF, DOCX, PPTX, XLSX, CSV) as sources with page-level references

ParameterTypeDescription
deck *stringDeck folder name or path
files *array

find

Find a phrase in the ingested documents; each hit carries the citation to use, e.g. annual-report#p14

ParameterTypeDescription
deck *stringDeck folder name or path
query *stringwords to look for

import_pptx

Turn an existing PowerPoint into a draft deck in the workspace (to restyle it)

ParameterTypeDescription
file *stringabsolute path to the .pptx

sync_pptx

Bring text someone edited in the built PPTX back into deck.yaml. Without apply it only lists the changes — show them to the user, then call again with apply: true

ParameterTypeDescription
deck *stringDeck folder name or path
file *stringabsolute path to the edited .pptx
applybooleanwrite the changes into deck.yaml