Deck spec
The DeckSpec that create_deck takes. Slides are kinds with slots; the compiler owns positions, sizes and fitting text.
A DeckSpec is a list of slides, each one of sixteen kinds. The model picks the kind that fits the content and fills its slots: a title that states the takeaway, bullets, a chart, stats, a timeline. It never sets positions or sizes (D9). The compiler fits text with a size ladder and warns when it does not fit.



Slide kinds
| Kind | Use it for |
|---|---|
title, section, closing | the cover, section dividers past eight slides, the ask or next steps at the end |
bullets, twoColumn, comparison | short points; two sides; options against criteria |
chart | a number series as a native chart with a takeaway |
stat, kpis | a few large numbers with captions |
table | small, genuinely tabular data with totals |
timeline, agenda | a sequence of steps or dates; the order of the meeting |
cards, decision | risks, next steps or a summary as cards; the decision asked for, with one line per fact |
imageText, quote | an image with text; a quote with its source |
Smallest example
{
"filename": "q3-review",
"spec": {
"title": "Q3 review",
"slides": [
{ "kind": "title", "title": "Q3 review", "subtitle": "Sales and service" },
{
"kind": "chart",
"title": "Service revenue passed bike sales in September",
"chart": {
"type": "column",
"categories": ["July", "August", "September"],
"series": [
{ "name": "Bike sales", "values": [48, 44, 39] },
{ "name": "Service", "values": [31, 38, 42] }
]
}
}
]
}
}A full example
The spec behind the quarterly update deck.
{
"filename": "quarterly-update",
"spec": {
"lang": "en-US",
"title": "Q3 2026 update",
"company": "Harbor Bikes",
"theme": {
"colors": {
"accent": "1F4E79",
"accent2": "D97706"
}
},
"footer": "Harbor Bikes · Q3 2026 update",
"slides": [
{
"kind": "title",
"title": "Q3 2026 update",
"subtitle": "Sales, service and the plan to spring"
},
{
"kind": "stat",
"title": "The quarter in three numbers",
"stats": [
{
"value": "$242k",
"caption": "Revenue in Q3, up 9% on Q3 2025"
},
{
"value": "47%",
"caption": "Share of revenue from service and repairs"
},
{
"value": "4.8",
"caption": "Average customer rating out of 5"
}
]
},
{
"kind": "chart",
"title": "Service revenue passed bike sales in September",
"takeaway": "Repairs and fittings grew every month of the quarter.",
"chart": {
"type": "column",
"categories": [
"July",
"August",
"September"
],
"series": [
{
"name": "Bike sales",
"values": [
48,
44,
39
]
},
{
"name": "Service",
"values": [
31,
38,
42
]
}
],
"unit": "USD thousands"
}
},
{
"kind": "twoColumn",
"title": "What worked and what did not",
"left": {
"heading": "Worked",
"bullets": [
"Same-day repair slots",
"Fitting sessions booked online",
"Loyalty card for service"
]
},
"right": {
"heading": "Did not work",
"bullets": [
"Discounts on last year's models",
"Saturday opening until 8 pm",
"Paper flyers"
]
}
},
{
"kind": "bullets",
"title": "Next steps",
"bullets": [
"Hire a second mechanic before November",
"Move the service desk to the front of the store",
"Agree the spring order with two suppliers by January"
]
}
]
}
}Fields
Generated from the schema the tools send to the model. A field with ? is optional.
| Field | Type | Description |
|---|---|---|
version? | 1 | |
lang? | string | BCP 47 language tag of the slide text; default from the host settings |
title | string (max 200 chars) | Deck title in sentence case, e.g. 'Q3 results' |
author? | string (max 200 chars) | |
company? | string (max 200 chars) | |
aspect? | "16:9" | "4:3" | |
theme? | object | |
footer? | string (max 120 chars) | |
slideNumbers? | boolean | |
slides | object[] (at least 1, at most 60) |
theme
| Field | Type | Description |
|---|---|---|
headFont? | string (max 64 chars) | |
bodyFont? | string (max 64 chars) | |
colors? | object |
theme.colors
| Field | Type | Description |
|---|---|---|
ink? | string | Main text colour |
paper? | string | Slide background |
accent? | string | Primary accent, chosen from the topic |
accent2? | string | Secondary accent for charts and highlights |
muted? | string | Captions, footers, axis labels |
slides[] kind: "title"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "title" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
subtitle? | string (max 400 chars) |
slides[] kind: "section"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "section" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
subtitle? | string (max 400 chars) |
slides[] kind: "bullets"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "bullets" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
bullets | (string | object)[] (at least 1, at most 10) |
slides[].bullets[]
| Field | Type | Description |
|---|---|---|
text | string (max 400 chars) | |
level? | integer (min 0, max 2) |
slides[] kind: "twoColumn"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "twoColumn" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
left | object | |
right | object |
slides[].left
| Field | Type | Description |
|---|---|---|
heading? | string (max 80 chars) | |
bullets | (string | object)[] (at least 1, at most 8) | |
tone? | "positive" | "negative" | "neutral" | A + or - marker before the heading, e.g. what worked / what did not |
slides[].right
| Field | Type | Description |
|---|---|---|
heading? | string (max 80 chars) | |
bullets | (string | object)[] (at least 1, at most 8) | |
tone? | "positive" | "negative" | "neutral" | A + or - marker before the heading, e.g. what worked / what did not |
slides[] kind: "table"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "table" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
columns | string[] (at least 1, at most 8) | |
rows | ((string | number | null)[])[] (at least 1, at most 15) | |
align? | ("left" | "center" | "right")[] | Per-column alignment; numbers default right |
highlightLastRow? | boolean | Emphasise a totals row |
total? | boolean | string | Adds a totals row the compiler computes: figure columns summed, a placeholder column gets [[Total <column>]]. A string is the row label |
currency? | string (max 8 chars) | Money columns: ISO code (EUR, USD) or symbol; number cells show it in the deck language's format, e.g. €1,200 |
note? | string (max 200 chars) | One short line under the table: the main message, source or assumption |
slides[] kind: "chart"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "chart" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
chart | object | |
takeaway? | string (max 400 chars) | One sentence: what the chart shows |
stats? | object[] (at least 1, at most 3) | Up to 3 key figures shown as cards beside the chart, e.g. the gap to target |
slides[].chart
| Field | Type | Description |
|---|---|---|
type | "column" | "bar" | "line" | "area" | "pie" | "doughnut" | "waterfall" | waterfall: one series, the start value then the changes, drawn as stacked columns |
stacked? | boolean | "percent" | true stacks; "percent" stacks to 100% |
categories | string[] (at least 1, at most 24) | |
series | object[] (at least 1, at most 6) | |
totalLast? | boolean | waterfall: the last value is a total bar, not a change |
numFmt? | string (max 64 chars) | Value axis/label format, e.g. #,##0 or 0% |
unit? | string (max 30 chars) | Unit shown in the axis title, e.g. USD thousands |
showValues? | boolean |
slides[].chart.series[]
| Field | Type | Description |
|---|---|---|
name | string (max 60 chars) | |
values | (number | null)[] (at least 1, at most 24) | |
type? | "column" | "line" | Combo chart: this series as columns or a line |
secondaryAxis? | boolean | Plot on a second value axis on the right |
slides[].stats[]
| Field | Type | Description |
|---|---|---|
value | string (max 16 chars) | |
caption | string (max 120 chars) |
slides[] kind: "stat"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "stat" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
stats | object[] (at least 1, at most 4) |
slides[].stats[]
| Field | Type | Description |
|---|---|---|
value | string (max 16 chars) | |
caption | string (max 120 chars) | |
icon? | string (max 100,000 chars) | Icon name, e.g. chart, users, clock, check; or a data:image/svg+xml URI |
slides[] kind: "imageText"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "imageText" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
image | object | |
imageSide? | "left" | "right" | |
body? | string (max 400 chars) | |
bullets? | (string | object)[] (at most 6) |
slides[].image
| Field | Type | Description |
|---|---|---|
src | string | data: URI (PNG, JPEG, GIF or SVG), https URL, a file path or an asset id the caller resolves (asset:<id>) |
alt | string (max 255 chars) | Alt text, required for accessibility |
fit? | "contain" | "cover" | contain (default) shows the whole image; cover fills the frame and crops the edges |
slides[] kind: "timeline"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "timeline" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
steps | object[] (at least 2, at most 6) |
slides[].steps[]
| Field | Type | Description |
|---|---|---|
label | string (max 24 chars) | Date or phase, e.g. Q4 2026 |
title | string (max 60 chars) | |
body? | string (max 160 chars) | |
icon? | string (max 100,000 chars) | Icon name, e.g. chart, users, clock, check; or a data:image/svg+xml URI |
slides[] kind: "closing"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "closing" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
subtitle? | string (max 400 chars) | |
contact? | string (max 200 chars) |
slides[] kind: "cards"
Risks (Impact, Likelihood, Mitigation), next steps (Owner, Due), a summary of 3-5 messages, what worked and what did not
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "cards" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
cards | object[] (at least 2, at most 6) | |
layout? | "row" | "list" | row: cards side by side (2-4 short cards); list: one band per card. Default from the content |
slides[].cards[]
| Field | Type | Description |
|---|---|---|
title | string (max 80 chars) | |
body? | string (max 200 chars) | |
fields? | object[] (at most 4) | Labelled facts, e.g. Owner, Due, Status, Impact, Likelihood, Mitigation |
tone? | "positive" | "negative" | "caution" | "neutral" | Marker colour and sign: positive +, negative -, caution !; default a number |
slides[].cards[].fields[]
| Field | Type | Description |
|---|---|---|
label | string (max 30 chars) | |
value | string (max 120 chars) |
slides[] kind: "decision"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "decision" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
ask | string (max 200 chars) | What the audience is asked to decide, one sentence |
fields | object[] (at least 1, at most 5) | Cost or impact, recommendation, owner, deadline: one labelled line each |
slides[].fields[]
| Field | Type | Description |
|---|---|---|
label | string (max 30 chars) | |
value | string (max 120 chars) |
slides[] kind: "quote"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "quote" | |
title? | string (max 120 chars) | Optional small heading above the quote |
quote | string (max 300 chars) | |
attribution? | string (max 80 chars) | Who said it, as the person gave it |
role? | string (max 80 chars) |
slides[] kind: "agenda"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "agenda" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
items | (string | object)[] (at least 2, at most 8) | |
current? | integer (min 0, max 7) | 0-based item to highlight, for an agenda shown between sections |
slides[].items[]
| Field | Type | Description |
|---|---|---|
title | string (max 80 chars) | |
detail? | string (max 120 chars) | |
icon? | string (max 100,000 chars) | Icon name, e.g. chart, users, clock, check; or a data:image/svg+xml URI |
slides[] kind: "comparison"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "comparison" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
options | string[] (at least 2, at most 4) | What is compared, one column each |
rows | object[] (at least 1, at most 8) | true and false show as a tick and a cross |
highlight? | integer (min 0, max 3) | 0-based option to emphasise (the recommendation) |
slides[].rows[]
| Field | Type | Description |
|---|---|---|
criterion | string (max 60 chars) | |
values | (string | boolean | null)[] |
slides[] kind: "kpis"
| Field | Type | Description |
|---|---|---|
id? | string (max 64 chars) | |
notes? | string (max 4,000 chars) | Speaker notes |
kind | "kpis" | |
title | string (max 120 chars) | Sentence case: capital on the first word and on names only |
items | object[] (at least 2, at most 8) |
slides[].items[]
| Field | Type | Description |
|---|---|---|
value | string (max 16 chars) | |
label | string (max 60 chars) | |
delta? | string (max 16 chars) | Change, e.g. +12% or -3 |
trend? | "up" | "down" | "flat" | Arrow and colour of the delta |
good? | "up" | "down" | Which direction is good news; default up |
icon? | string (max 100,000 chars) | Icon name, e.g. chart, users, clock, check; or a data:image/svg+xml URI |