Course content reference

Create courses using supported card types. This reference describes authored data, not card implementation or saved work.

Course authoring · Type guide · Card engineering reference

equation-practice is used in our courses; not yet open for new authoring. Existing courses remain supported.

Shapes come from the validation schemas. Semantic admission and mathematical review apply in addition.

Course, decks, translations and progress

Expression references carry the remaining depth in their name. Level 20 permits all variants; each child reduces the level by one. Level 0 permits only a symbol. Repeated levels are omitted from this reference, but retained in the schema.

Formula Cards course v1: equation and mixed-card engines

payload object strict
cards array required

items: 1 … 10000

each item #/$defs/card
See shared structure ↗
decks array required

items: 1 … 1000

each item object strict
cards array required

items: 1 … 10000

each item string

characters: −∞ … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

countsTowardCourseProgress boolean optional

Defaults to true. False preserves deck practice and progress but excludes it from course totals.

description string required

characters: −∞ … 50000

id string required

characters: −∞ … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

kind "lecture" | "computation" | "supplementary" | "recall" | "activity" required
settingsEditors array optional

Build-registered provider settings sources. Output kinds must be disjoint. Resolved once per Run.

items: −∞ … 32

each item object strict
configuration value optional
editor string required

characters: −∞ … 160; pattern: ^[a-z][a-z0-9.-]*$

shortName string required

characters: 1 … 200

subtitle string required

characters: −∞ … 50000

title string required

characters: 1 … 200

engine "equation-editor-v1" | "mixed-cards-v1" required
id string required

characters: −∞ … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

localization object optional strict
available array required

items: 1 … 100

each item object strict
code string required

characters: −∞ … 80; pattern: ^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$

name string required

characters: 1 … 200

note string optional

characters: −∞ … 2000

decks dictionary optional
each map value dictionary
each map value object strict
description string optional

characters: −∞ … 50000

shortName string optional

characters: 1 … 200

subtitle string optional

characters: −∞ … 50000

title string optional

characters: 1 … 200

metadata dictionary optional
each map value object strict
deckAuthor string optional

characters: −∞ … 50000

lecturer string optional

characters: −∞ … 50000

title string optional

characters: 1 … 200

original string required

characters: −∞ … 80; pattern: ^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$

metadata object required strict
deckAuthor string optional

characters: −∞ … 50000

lecturer string optional

characters: −∞ … 50000

source object optional strict
label string required

characters: −∞ … 50000

url string required

characters: −∞ … 2048; pattern: ^https?://

title string required

characters: 1 … 200

progress object optional strict
categories array required

items: 1 … 12

each item object strict
color string required

pattern: ^#[0-9a-fA-F]{6}$

id string required

pattern: ^[a-z][a-z0-9-]{0,39}$

label string required

characters: 1 … 120

courseOutcomes array optional

Outcomes eligible for course totals, independently of deck mode. Omit to use deck progress policy.

items: 1 … ∞; unique items

each item string
historyLength 10 optional

Legacy input only. History depth is queried from each card; omit this field.

outcomeCategories dictionary required
each map value string
policy "practice" | "completion" optional

Practice counts recent tries; completion counts each card once after any recognized completion.

schemaVersion 1 required

Shared definitions

card exactly one alternative
alternative 1 #/$defs/clozeCard
See shared structure ↗
alternative 2 #/$defs/equationCard
See shared structure ↗
alternative 3 #/$defs/verbatimCard
See shared structure ↗
alternative 4 #/$defs/selfReviewCard
See shared structure ↗
alternative 5 #/$defs/diagramCard
See shared structure ↗
clozeCard object strict

Fill-in-the-blanks content. Beyond structural decoding, admission checks unique IDs, exactly one reference per blank, normalized answer uniqueness and UTF-16 text bounds.

blanks array required

Answer definitions with unique IDs, each referenced exactly once in parts.

items: 1 … 12

each item object strict
answers array required

Accepted alternatives; NFC, whitespace and English-case normalization applies. Empty or duplicate normalized alternatives are rejected.

items: 1 … 10

each item string

characters: 1 … 500

id string required

Stable local identifier, referenced by other fields in this card.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

label string required

Accessible name for this answer field.

characters: 1 … 500

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

parts array required

Ordered literal text and blank references forming the exercise.

items: 1 … 50

each item exactly one alternative
alternative 1 string

characters: 1 … 500

alternative 2 object strict
blank string required

Reference to a declared blank ID. Each blank must appear exactly once in parts.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

title string required

Human-readable card title.

characters: 1 … 500

type "cloze" required

Provider discriminator; selects the implementation that owns this payload.

weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

diagramCard object strict

Diagram placement content. Semantic admission additionally checks unique IDs, label references and embedded-image validity. Primitive coordinates are diagram units; target coordinates are percentages.

diagram exactly one alternative required

Accessible diagram, either geometric primitives or an embedded PNG.

alternative 1 object strict
circles array required

Circles in the 600-by-360 diagram coordinate system.

items: 0 … 12

each item object strict
cx integer required

Horizontal coordinate of the circle center.

value: 0 … 600

cy integer required

Vertical coordinate of the circle center.

value: 0 … 600

r integer required

Circle radius in diagram units.

value: 0 … 600

description string required

Text alternative describing the diagram.

characters: 1 … 500

lines array required

Line segments in the 600-by-360 diagram coordinate system.

items: 0 … 30

each item object strict
x1 integer required

Horizontal coordinate of the line start.

value: 0 … 600

x2 integer required

Horizontal coordinate of the line end.

value: 0 … 600

y1 integer required

Vertical coordinate of the line start.

value: 0 … 600

y2 integer required

Vertical coordinate of the line end.

value: 0 … 600

alternative 2 object strict
description string required

Text alternative describing the diagram.

characters: 1 … 500

image object required strict

Embedded PNG with declared pixel dimensions; semantic admission checks the image payload.

data string required

Base64-encoded PNG bytes, without a data-URL prefix.

characters: 60 … 349528; pattern: ^[A-Za-z0-9+/]*={0,2}$

height integer required

Declared image height in pixels.

value: 1 … 2048

mimeType "image/png" required

Supported embedded image media type.

width integer required

Declared image width in pixels.

value: 1 … 2048

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

labels array required

Available labels with unique IDs.

items: 1 … 12

each item object strict
id string required

Stable local identifier, referenced by other fields in this card.

characters: 0 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

text string required

Text shown on the label.

characters: 1 … 500

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

targets array required

Placement targets with unique IDs and valid label references.

items: 1 … 12

each item object strict
id string required

Stable local identifier, referenced by other fields in this card.

characters: 0 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

labelId string required

ID of the label assigned to this target.

characters: 0 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

x integer required

Target horizontal position as a percentage of the diagram width.

value: 5 … 95

y integer required

Target vertical position as a percentage of the diagram height.

value: 5 … 95

title string required

Human-readable card title.

characters: 1 … 500

type "diagram-labeling" required

Provider discriminator; selects the implementation that owns this payload.

weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

equation-expression-20 exactly one alternative
alternative kind = "symbol" object strict
kind "symbol" required
text string required

Atomic mathematical symbol text.

characters: 1 … 200

alternative kind = "row" object strict
children array required

Ordered expressions in a row.

items: 1 … 1500

each item #/$defs/equation-expression-19
See shared structure ↗
kind "row" required
alternative kind = "fraction" object strict
bottom #/$defs/equation-expression-19 required

Denominator expression.

See shared structure ↗
kind "fraction" required
top #/$defs/equation-expression-19 required

Numerator expression.

See shared structure ↗
alternative kind = "power" object strict
base #/$defs/equation-expression-19 required

Base expression.

See shared structure ↗
exponent #/$defs/equation-expression-19 required

Exponent expression.

See shared structure ↗
kind "power" required
alternative kind = "radical" object strict
kind "radical" required
radicand #/$defs/equation-expression-19 required

Expression under the radical.

See shared structure ↗
alternative kind = "matrix" object strict
cells array required

Matrix entries in row-major order; semantic validation requires complete rows.

items: 1 … 9

each item #/$defs/equation-expression-19
See shared structure ↗
cols integer required

Number of matrix columns. Cells must fill complete rows.

value: 1 … 3

kind "matrix" required
equationCard object strict

Expression-entry content with editor controls, accepted expressions and grading assumptions. Expressions allow at most 20 structural levels above symbol leaves. Semantic admission also limits total complexity, checks complete matrix rows and validates supported editor operations.

answers array required

Accepted expression trees, compared using this card's grading assumptions.

items: 1 … 100

each item #/$defs/equation-expression-20
See shared structure ↗
editor object required strict

Available expression-entry controls and initial reveal behavior.

digits array required

Digit buttons available in this editor.

items: 0 … 10

each item "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
initialAnswerVisible boolean required

Whether to show the initial answer; semantic admission requires a stepwise sequence.

operations array required

Enabled structural and arithmetic insertion operations.

items: 0 … 40

each item "−" | "+" | "fraction" | "=" | "," | "(" | ")" | "square" | "power" | "||" | "|" | "⟨" | "⟩" | "sqrt" | "×" | "/" | "{" | "}" | "column" | "matrix" | "matrix-1x1" | "matrix-1x2" | "matrix-1x3" | "matrix-2x1" | "matrix-2x2" | "matrix-2x3" | "matrix-3x1" | "matrix-3x2" | "matrix-3x3" | "inverse" | "transpose"
palette array required

Authored symbol insertion buttons.

items: 0 … 300

each item object strict
accessibleLabel string optional

Optional accessible name for the palette button.

characters: 0 … 50000

label string required

Visible label for this palette button.

characters: 0 … 50000

tool exactly one alternative required

Symbol insertion token or ordered group of tokens.

alternative 1 string

characters: 1 … 200

alternative 2 array

items: 1 … 20

each item string

characters: 1 … 200

explanation object required strict

Optional explanatory definition or proof.

definition string optional

Explanatory definition text.

characters: 0 … 50000

kind "proof" | "definition" required

Selects the explanation presentation: definition or proof.

proof object optional strict

Proof introduction and ordered explanatory steps.

intro string required

Introductory prose preceding the proof steps.

characters: 0 … 50000

steps array required

Ordered proof steps, pairing prose with an optional expression.

items: 0 … 200

each item object strict
equation #/$defs/equation-expression-20 optional

Expression displayed with this proof step.

See shared structure ↗
text string optional

Explanatory text for this proof step.

characters: 0 … 50000

grading object required strict

Mathematical assumptions and comparison options used to judge equivalent answers.

equalityChain boolean required

Enables equality-chain comparison.

implicitArguments dictionary required

Symbol-to-argument-list map for implicit function arguments.

each map value array

items: 0 … 10

each item string

characters: 1 … 200

matrixShapes dictionary optional

Declared matrix shapes used by the equivalence checker.

each map value "square" | "column" | "row"
nonnegative array required

Expressions assumed to be greater than or equal to zero.

items: 0 … 10000

each item string

characters: 1 … 200

nonzero array required

Expressions assumed to be nonzero.

items: 0 … 10000

each item string

characters: 1 … 200

positive array required

Expressions assumed to be strictly positive.

items: 0 … 10000

each item string

characters: 1 … 200

scalarProducts boolean required

Enables scalar-product handling in comparison.

symbolTypes dictionary required

Symbol-to-kind map distinguishing scalars, vectors and matrices.

each map value "scalar" | "vector" | "matrix"
symmetricMatrices array optional

Names of matrices assumed symmetric.

items: 0 … 100

each item string

characters: 1 … 200

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

legacyKey string optional

Historical lookup key retained for compatibility with earlier card identities.

characters: 1 … 200

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

recallPrompt string optional

Optional shorter prompt for recall mode. Omit to use the ordinary prompt.

characters: 1 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

sequence array optional

Ordered expression steps for the stepwise exercise mode.

items: 1 … 100

each item #/$defs/equation-expression-20
See shared structure ↗
slipAllowance integer optional

Number of light errors allowed before solved becomes corrected. Defaults to legacy multiplier minus one, otherwise zero. Independent of progress weight.

value: 0 … 3

title string required

Human-readable card title.

characters: 1 … 500

translations dictionary optional

Locale-keyed replacements for the corresponding authored text.

each map value object strict
definition string optional

Explanatory definition text.

characters: 0 … 50000

prompt string optional

Instructions displayed before answering.

characters: 0 … 50000

proof object optional strict

Proof introduction and ordered explanatory steps.

intro string required

Introductory prose preceding the proof steps.

characters: 0 … 50000

steps array required

Ordered proof steps, pairing prose with an optional expression.

items: 0 … 200

each item object strict
equation #/$defs/equation-expression-20 optional

Expression displayed with this proof step.

See shared structure ↗
text string optional

Explanatory text for this proof step.

characters: 0 … 50000

title string optional

Human-readable card title.

characters: 1 … 200

type "equation" required

Provider discriminator; selects the implementation that owns this payload.

variants array optional

Finite question/answer variants selected by the Attempt random seed. Outside an Attempt the base content is used. Order is part of the card revision.

items: 1 … 100

each item object strict
answers array required

items: 1 … 100

each item #/$defs/equation-expression-20
See shared structure ↗
editor object optional strict
digits array required

Digit buttons available in this editor.

items: 0 … 10

each item "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
initialAnswerVisible boolean required

Whether to show the initial answer; semantic admission requires a stepwise sequence.

operations array required

Enabled structural and arithmetic insertion operations.

items: 0 … 40

each item "−" | "+" | "fraction" | "=" | "," | "(" | ")" | "square" | "power" | "||" | "|" | "⟨" | "⟩" | "sqrt" | "×" | "/" | "{" | "}" | "column" | "matrix" | "matrix-1x1" | "matrix-1x2" | "matrix-1x3" | "matrix-2x1" | "matrix-2x2" | "matrix-2x3" | "matrix-3x1" | "matrix-3x2" | "matrix-3x3" | "inverse" | "transpose"
palette array required

Authored symbol insertion buttons.

items: 0 … 300

each item object strict
accessibleLabel string optional

Optional accessible name for the palette button.

characters: 0 … 50000

label string required

Visible label for this palette button.

characters: 0 … 50000

tool exactly one alternative required

Symbol insertion token or ordered group of tokens.

alternative 1 string

characters: 1 … 200

alternative 2 array

items: 1 … 20

each item string

characters: 1 … 200

explanation object optional strict
definition string optional

Explanatory definition text.

characters: 0 … 50000

kind "proof" | "definition" required

Selects the explanation presentation: definition or proof.

proof object optional strict

Proof introduction and ordered explanatory steps.

intro string required

Introductory prose preceding the proof steps.

characters: 0 … 50000

steps array required

Ordered proof steps, pairing prose with an optional expression.

items: 0 … 200

each item object strict
equation #/$defs/equation-expression-20 optional

Expression displayed with this proof step.

See shared structure ↗
text string optional

Explanatory text for this proof step.

characters: 0 … 50000

prompt string required

characters: 1 … 50000

recallPrompt string optional

characters: 1 … 5000

sequence array optional

items: 1 … 100

each item #/$defs/equation-expression-20
See shared structure ↗
weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

selfReviewCard object strict

A reveal-and-rate card. The learner reads the front, reveals the back, then supplies one rating.

attribution string required

Source and credit text associated with this card.

characters: 1 … 5000

back string required

Answer-side text revealed before self-rating.

characters: 1 … 5000

backLanguage string required

Language tag for the back text.

characters: 0 … 35; pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$

front string required

Question-side text, shown before reveal.

characters: 1 … 5000

frontLanguage string required

Language tag for the front text.

characters: 0 … 35; pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

noteId string required

Optional source-note identifier linking related cards.

characters: 0 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

title string required

Human-readable card title.

characters: 1 … 500

type "self-review" required

Provider discriminator; selects the implementation that owns this payload.

weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

verbatimCard object strict

Typed-recall content with prose, formula tokens and insertion vocabulary. Semantic admission checks answer construction and formula references.

answer array required

Ordered prose fragments and formula references making up the official answer. Prose is matched case-insensitively with supported spelling normalization.

items: 1 … 200

each item exactly one alternative
alternative 1 string

characters: 0 … 20000

alternative 2 object strict
id string required

Stable local identifier, referenced by other fields in this card.

characters: 1 … 80

formulas array required

Declared mathematical tokens available to the editor. Answer references must resolve to these IDs.

items: 0 … 100

each item object strict
aliases array optional

Additional keyboard codes that insert this formula.

items: 0 … 10

each item string

characters: 1 … 80

code string required

Primary keyboard insertion code for this formula.

characters: 1 … 80

id string required

Stable local identifier, referenced by other fields in this card.

characters: 1 … 80

label string required

Human-readable name of the formula.

characters: 1 … 200

latex string required

LaTeX used to display the mathematical token.

characters: 1 … 2000

gradingScale integer optional

Warning/reveal grading scale, independent of progress weight. Defaults to legacy multiplier or answer-length scale.

value: 1 … 4

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

title string required

Human-readable card title.

characters: 1 … 500

translations dictionary optional

Locale-keyed replacements for the corresponding authored text.

each map value object strict
answer array optional

Ordered prose fragments and formula references making up the official answer. Prose is matched case-insensitively with supported spelling normalization.

items: 1 … 200

each item exactly one alternative
alternative 1 string

characters: 0 … 20000

alternative 2 object strict
id string required

Stable local identifier, referenced by other fields in this card.

characters: 1 … 80

formulaLabels dictionary optional

Formula-ID to translated display-label map.

each map value string

characters: 1 … 200

prompt string optional

Instructions displayed before answering.

characters: 1 … 20000

title string optional

Human-readable card title.

characters: 1 … 200

vocabulary array optional

Legacy vocabulary metadata, retained for compatibility. Capsules are now derived from answer prose with a ten-character minimum.

items: 0 … 200; unique items

each item string

characters: 1 … 120

vocabularyAlways array optional

Legacy capsule overrides, retained for compatibility. These no longer bypass the answer-derived capsule length cutoff.

items: 0 … 200; unique items

each item string

characters: 1 … 120

type "verbatim" required

Provider discriminator; selects the implementation that owns this payload.

vocabulary array optional

Legacy vocabulary metadata, retained for compatibility. Capsules are now derived from answer prose with a ten-character minimum.

items: 0 … 200; unique items

each item string

characters: 1 … 120

vocabularyAlways array optional

Legacy capsule overrides, retained for compatibility. These no longer bypass the answer-derived capsule length cutoff.

items: 0 … 200; unique items

each item string

characters: 1 … 120

weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

Outcomes to map to progress categories

Map every outcome used by your course to a category ID declared in progress.categories. Several outcomes may share a category. These are outcome names, not stored result payloads. See the mapping guide.

Card typeOutcomes
equationsolved, corrected, assisted
verbatimsolved, corrected, assisted
self-reviewagain, hard, good, easy
diagram-labelingall-correct, partial, none-correct
clozeall-correct, partial, none-correct

equation

Expression references carry the remaining depth in their name. Level 20 permits all variants; each child reduces the level by one. Level 0 permits only a symbol. Repeated levels are omitted from this reference, but retained in the schema.

equation / content

Expression-entry content with editor controls, accepted expressions and grading assumptions. Expressions allow at most 20 structural levels above symbol leaves. Semantic admission also limits total complexity, checks complete matrix rows and validates supported editor operations.

payload object strict
answers array required

Accepted expression trees, compared using this card's grading assumptions.

items: 1 … 100

each item #/$defs/equation-expression-20
See shared structure ↗
editor object required strict

Available expression-entry controls and initial reveal behavior.

digits array required

Digit buttons available in this editor.

items: 0 … 10

each item "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
initialAnswerVisible boolean required

Whether to show the initial answer; semantic admission requires a stepwise sequence.

operations array required

Enabled structural and arithmetic insertion operations.

items: 0 … 40

each item "−" | "+" | "fraction" | "=" | "," | "(" | ")" | "square" | "power" | "||" | "|" | "⟨" | "⟩" | "sqrt" | "×" | "/" | "{" | "}" | "column" | "matrix" | "matrix-1x1" | "matrix-1x2" | "matrix-1x3" | "matrix-2x1" | "matrix-2x2" | "matrix-2x3" | "matrix-3x1" | "matrix-3x2" | "matrix-3x3" | "inverse" | "transpose"
palette array required

Authored symbol insertion buttons.

items: 0 … 300

each item object strict
accessibleLabel string optional

Optional accessible name for the palette button.

characters: 0 … 50000

label string required

Visible label for this palette button.

characters: 0 … 50000

tool exactly one alternative required

Symbol insertion token or ordered group of tokens.

alternative 1 string

characters: 1 … 200

alternative 2 array

items: 1 … 20

each item string

characters: 1 … 200

explanation object required strict

Optional explanatory definition or proof.

definition string optional

Explanatory definition text.

characters: 0 … 50000

kind "proof" | "definition" required

Selects the explanation presentation: definition or proof.

proof object optional strict

Proof introduction and ordered explanatory steps.

intro string required

Introductory prose preceding the proof steps.

characters: 0 … 50000

steps array required

Ordered proof steps, pairing prose with an optional expression.

items: 0 … 200

each item object strict
equation #/$defs/equation-expression-20 optional

Expression displayed with this proof step.

See shared structure ↗
text string optional

Explanatory text for this proof step.

characters: 0 … 50000

grading object required strict

Mathematical assumptions and comparison options used to judge equivalent answers.

equalityChain boolean required

Enables equality-chain comparison.

implicitArguments dictionary required

Symbol-to-argument-list map for implicit function arguments.

each map value array

items: 0 … 10

each item string

characters: 1 … 200

matrixShapes dictionary optional

Declared matrix shapes used by the equivalence checker.

each map value "square" | "column" | "row"
nonnegative array required

Expressions assumed to be greater than or equal to zero.

items: 0 … 10000

each item string

characters: 1 … 200

nonzero array required

Expressions assumed to be nonzero.

items: 0 … 10000

each item string

characters: 1 … 200

positive array required

Expressions assumed to be strictly positive.

items: 0 … 10000

each item string

characters: 1 … 200

scalarProducts boolean required

Enables scalar-product handling in comparison.

symbolTypes dictionary required

Symbol-to-kind map distinguishing scalars, vectors and matrices.

each map value "scalar" | "vector" | "matrix"
symmetricMatrices array optional

Names of matrices assumed symmetric.

items: 0 … 100

each item string

characters: 1 … 200

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

legacyKey string optional

Historical lookup key retained for compatibility with earlier card identities.

characters: 1 … 200

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

recallPrompt string optional

Optional shorter prompt for recall mode. Omit to use the ordinary prompt.

characters: 1 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

sequence array optional

Ordered expression steps for the stepwise exercise mode.

items: 1 … 100

each item #/$defs/equation-expression-20
See shared structure ↗
slipAllowance integer optional

Number of light errors allowed before solved becomes corrected. Defaults to legacy multiplier minus one, otherwise zero. Independent of progress weight.

value: 0 … 3

title string required

Human-readable card title.

characters: 1 … 500

translations dictionary optional

Locale-keyed replacements for the corresponding authored text.

each map value object strict
definition string optional

Explanatory definition text.

characters: 0 … 50000

prompt string optional

Instructions displayed before answering.

characters: 0 … 50000

proof object optional strict

Proof introduction and ordered explanatory steps.

intro string required

Introductory prose preceding the proof steps.

characters: 0 … 50000

steps array required

Ordered proof steps, pairing prose with an optional expression.

items: 0 … 200

each item object strict
equation #/$defs/equation-expression-20 optional

Expression displayed with this proof step.

See shared structure ↗
text string optional

Explanatory text for this proof step.

characters: 0 … 50000

title string optional

Human-readable card title.

characters: 1 … 200

type "equation" required

Provider discriminator; selects the implementation that owns this payload.

variants array optional

Finite question/answer variants selected by the Attempt random seed. Outside an Attempt the base content is used. Order is part of the card revision.

items: 1 … 100

each item object strict
answers array required

items: 1 … 100

each item #/$defs/equation-expression-20
See shared structure ↗
editor object optional strict
digits array required

Digit buttons available in this editor.

items: 0 … 10

each item "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
initialAnswerVisible boolean required

Whether to show the initial answer; semantic admission requires a stepwise sequence.

operations array required

Enabled structural and arithmetic insertion operations.

items: 0 … 40

each item "−" | "+" | "fraction" | "=" | "," | "(" | ")" | "square" | "power" | "||" | "|" | "⟨" | "⟩" | "sqrt" | "×" | "/" | "{" | "}" | "column" | "matrix" | "matrix-1x1" | "matrix-1x2" | "matrix-1x3" | "matrix-2x1" | "matrix-2x2" | "matrix-2x3" | "matrix-3x1" | "matrix-3x2" | "matrix-3x3" | "inverse" | "transpose"
palette array required

Authored symbol insertion buttons.

items: 0 … 300

each item object strict
accessibleLabel string optional

Optional accessible name for the palette button.

characters: 0 … 50000

label string required

Visible label for this palette button.

characters: 0 … 50000

tool exactly one alternative required

Symbol insertion token or ordered group of tokens.

alternative 1 string

characters: 1 … 200

alternative 2 array

items: 1 … 20

each item string

characters: 1 … 200

explanation object optional strict
definition string optional

Explanatory definition text.

characters: 0 … 50000

kind "proof" | "definition" required

Selects the explanation presentation: definition or proof.

proof object optional strict

Proof introduction and ordered explanatory steps.

intro string required

Introductory prose preceding the proof steps.

characters: 0 … 50000

steps array required

Ordered proof steps, pairing prose with an optional expression.

items: 0 … 200

each item object strict
equation #/$defs/equation-expression-20 optional

Expression displayed with this proof step.

See shared structure ↗
text string optional

Explanatory text for this proof step.

characters: 0 … 50000

prompt string required

characters: 1 … 50000

recallPrompt string optional

characters: 1 … 5000

sequence array optional

items: 1 … 100

each item #/$defs/equation-expression-20
See shared structure ↗
weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

Shared definitions

equation-expression-20 exactly one alternative
alternative kind = "symbol" object strict
kind "symbol" required
text string required

Atomic mathematical symbol text.

characters: 1 … 200

alternative kind = "row" object strict
children array required

Ordered expressions in a row.

items: 1 … 1500

each item #/$defs/equation-expression-19
See shared structure ↗
kind "row" required
alternative kind = "fraction" object strict
bottom #/$defs/equation-expression-19 required

Denominator expression.

See shared structure ↗
kind "fraction" required
top #/$defs/equation-expression-19 required

Numerator expression.

See shared structure ↗
alternative kind = "power" object strict
base #/$defs/equation-expression-19 required

Base expression.

See shared structure ↗
exponent #/$defs/equation-expression-19 required

Exponent expression.

See shared structure ↗
kind "power" required
alternative kind = "radical" object strict
kind "radical" required
radicand #/$defs/equation-expression-19 required

Expression under the radical.

See shared structure ↗
alternative kind = "matrix" object strict
cells array required

Matrix entries in row-major order; semantic validation requires complete rows.

items: 1 … 9

each item #/$defs/equation-expression-19
See shared structure ↗
cols integer required

Number of matrix columns. Cells must fill complete rows.

value: 1 … 3

kind "matrix" required

verbatim

verbatim / content

Typed-recall content with prose, formula tokens and insertion vocabulary. Semantic admission checks answer construction and formula references.

payload object strict
answer array required

Ordered prose fragments and formula references making up the official answer. Prose is matched case-insensitively with supported spelling normalization.

items: 1 … 200

each item exactly one alternative
alternative 1 string

characters: 0 … 20000

alternative 2 object strict
id string required

Stable local identifier, referenced by other fields in this card.

characters: 1 … 80

formulas array required

Declared mathematical tokens available to the editor. Answer references must resolve to these IDs.

items: 0 … 100

each item object strict
aliases array optional

Additional keyboard codes that insert this formula.

items: 0 … 10

each item string

characters: 1 … 80

code string required

Primary keyboard insertion code for this formula.

characters: 1 … 80

id string required

Stable local identifier, referenced by other fields in this card.

characters: 1 … 80

label string required

Human-readable name of the formula.

characters: 1 … 200

latex string required

LaTeX used to display the mathematical token.

characters: 1 … 2000

gradingScale integer optional

Warning/reveal grading scale, independent of progress weight. Defaults to legacy multiplier or answer-length scale.

value: 1 … 4

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

title string required

Human-readable card title.

characters: 1 … 500

translations dictionary optional

Locale-keyed replacements for the corresponding authored text.

each map value object strict
answer array optional

Ordered prose fragments and formula references making up the official answer. Prose is matched case-insensitively with supported spelling normalization.

items: 1 … 200

each item exactly one alternative
alternative 1 string

characters: 0 … 20000

alternative 2 object strict
id string required

Stable local identifier, referenced by other fields in this card.

characters: 1 … 80

formulaLabels dictionary optional

Formula-ID to translated display-label map.

each map value string

characters: 1 … 200

prompt string optional

Instructions displayed before answering.

characters: 1 … 20000

title string optional

Human-readable card title.

characters: 1 … 200

vocabulary array optional

Legacy vocabulary metadata, retained for compatibility. Capsules are now derived from answer prose with a ten-character minimum.

items: 0 … 200; unique items

each item string

characters: 1 … 120

vocabularyAlways array optional

Legacy capsule overrides, retained for compatibility. These no longer bypass the answer-derived capsule length cutoff.

items: 0 … 200; unique items

each item string

characters: 1 … 120

type "verbatim" required

Provider discriminator; selects the implementation that owns this payload.

vocabulary array optional

Legacy vocabulary metadata, retained for compatibility. Capsules are now derived from answer prose with a ten-character minimum.

items: 0 … 200; unique items

each item string

characters: 1 … 120

vocabularyAlways array optional

Legacy capsule overrides, retained for compatibility. These no longer bypass the answer-derived capsule length cutoff.

items: 0 … 200; unique items

each item string

characters: 1 … 120

weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

self-review

self-review / content

A reveal-and-rate card. The learner reads the front, reveals the back, then supplies one rating.

payload object strict
attribution string required

Source and credit text associated with this card.

characters: 1 … 5000

back string required

Answer-side text revealed before self-rating.

characters: 1 … 5000

backLanguage string required

Language tag for the back text.

characters: 0 … 35; pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$

front string required

Question-side text, shown before reveal.

characters: 1 … 5000

frontLanguage string required

Language tag for the front text.

characters: 0 … 35; pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

noteId string required

Optional source-note identifier linking related cards.

characters: 0 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

title string required

Human-readable card title.

characters: 1 … 500

type "self-review" required

Provider discriminator; selects the implementation that owns this payload.

weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

diagram-labeling

diagram-labeling / content

Diagram placement content. Semantic admission additionally checks unique IDs, label references and embedded-image validity. Primitive coordinates are diagram units; target coordinates are percentages.

payload object strict
diagram exactly one alternative required

Accessible diagram, either geometric primitives or an embedded PNG.

alternative 1 object strict
circles array required

Circles in the 600-by-360 diagram coordinate system.

items: 0 … 12

each item object strict
cx integer required

Horizontal coordinate of the circle center.

value: 0 … 600

cy integer required

Vertical coordinate of the circle center.

value: 0 … 600

r integer required

Circle radius in diagram units.

value: 0 … 600

description string required

Text alternative describing the diagram.

characters: 1 … 500

lines array required

Line segments in the 600-by-360 diagram coordinate system.

items: 0 … 30

each item object strict
x1 integer required

Horizontal coordinate of the line start.

value: 0 … 600

x2 integer required

Horizontal coordinate of the line end.

value: 0 … 600

y1 integer required

Vertical coordinate of the line start.

value: 0 … 600

y2 integer required

Vertical coordinate of the line end.

value: 0 … 600

alternative 2 object strict
description string required

Text alternative describing the diagram.

characters: 1 … 500

image object required strict

Embedded PNG with declared pixel dimensions; semantic admission checks the image payload.

data string required

Base64-encoded PNG bytes, without a data-URL prefix.

characters: 60 … 349528; pattern: ^[A-Za-z0-9+/]*={0,2}$

height integer required

Declared image height in pixels.

value: 1 … 2048

mimeType "image/png" required

Supported embedded image media type.

width integer required

Declared image width in pixels.

value: 1 … 2048

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

labels array required

Available labels with unique IDs.

items: 1 … 12

each item object strict
id string required

Stable local identifier, referenced by other fields in this card.

characters: 0 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

text string required

Text shown on the label.

characters: 1 … 500

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

targets array required

Placement targets with unique IDs and valid label references.

items: 1 … 12

each item object strict
id string required

Stable local identifier, referenced by other fields in this card.

characters: 0 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

labelId string required

ID of the label assigned to this target.

characters: 0 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

x integer required

Target horizontal position as a percentage of the diagram width.

value: 5 … 95

y integer required

Target vertical position as a percentage of the diagram height.

value: 5 … 95

title string required

Human-readable card title.

characters: 1 … 500

type "diagram-labeling" required

Provider discriminator; selects the implementation that owns this payload.

weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

cloze

cloze / content

Fill-in-the-blanks content. Beyond structural decoding, admission checks unique IDs, exactly one reference per blank, normalized answer uniqueness and UTF-16 text bounds.

payload object strict
blanks array required

Answer definitions with unique IDs, each referenced exactly once in parts.

items: 1 … 12

each item object strict
answers array required

Accepted alternatives; NFC, whitespace and English-case normalization applies. Empty or duplicate normalized alternatives are rejected.

items: 1 … 10

each item string

characters: 1 … 500

id string required

Stable local identifier, referenced by other fields in this card.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

label string required

Accessible name for this answer field.

characters: 1 … 500

id string required

Stable card identifier within its course.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

learningVersion integer required

Positive learning revision used when grouping compatible learning history.

value: 1 … 9007199254740991

multiplier integer optional

Legacy coupled weight and grading setting. Use weight and provider grading settings for new content.

value: 1 … 9007199254740991

parts array required

Ordered literal text and blank references forming the exercise.

items: 1 … 50

each item exactly one alternative
alternative 1 string

characters: 1 … 500

alternative 2 object strict
blank string required

Reference to a declared blank ID. Each blank must appear exactly once in parts.

characters: 1 … 120; pattern: ^[A-Za-z][A-Za-z0-9_-]*$

prompt string required

Instructions displayed before answering.

characters: 0 … 5000

retired boolean optional

Excludes the card from ordinary practice while preserving authored deck membership and history.

title string required

Human-readable card title.

characters: 1 … 500

type "cloze" required

Provider discriminator; selects the implementation that owns this payload.

weight integer optional

Progress credit only; never changes grading. Defaults to legacy multiplier or provider default. Historical tries retain their earned weight.

value: 1 … 9007199254740991

Settings payloads

Mechanic settings change the activity; presentation settings change its display. Availability depends on the card type. First-invitation courses should omit settingsEditors: practice-mode requires the reserved equation-practice type. See the course settings guide. These payload schemas do not make every setting available to every card.

practice-mode

setting-practice-mode

payload "solve" | "recall"

audio-listening

setting-audio-listening

payload boolean

left-handed

setting-left-handed

payload boolean

card-centered-on-landscape

setting-card-centered-on-landscape

payload boolean