Math board
v0.3.1A local, view-only chalkboard the model draws on: equations, plots, molecules and diagrams.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
board_open Open board
Open the shared blackboard to teach visually: starts it, shows it in the learner's browser and activates the board tools (board_read, board_update, board_docs, ...). Returns the URL if no browser opens. Safe to call again.
board_read Read board
Read the shared blackboard: revision, chapters, camera, steps, and the layout (id, type, position, size, step) of one chapter. Read before board_update (pass the revision as baseRevision) and to resolve references like "step 4, eq2".
| Parameter | Type | Description |
|---|---|---|
chapter | string | Chapter id, 'all' or 'free' (default: camera's) |
includeScene | boolean | Also return the scene JSON |
includeSources | boolean | Include artifact sources |
board_update Update board
Draw on the shared blackboard; each call that adds items is one lesson step the learner watches being drawn. Coordinates: the home board and every chapter are 1200x800, origin top-left, y down; items with `chapter` use that chapter's local coordinates. Text y is the baseline; equation, rect, ellipse and artifact x,y is the top-left. `baseRevision` = the revision from your last board_read or board_update (compare-and-swap); on a conflict, board_read again and re-apply your change to the current board, never retry blindly. Invalid input is rejected with the reason and nothing is applied. Each re…
board_snapshot Look at board
Render the board in a headless browser and return a PNG as the learner sees it, plus each item's measured box and the layout warnings. Use it after significant changes, then fix problems with board_update.
| Parameter | Type | Description |
|---|---|---|
chapter | string | Chapter to capture |
overview | boolean | All chapters |
region | object | Board-space area (default: camera view) |
width | number | Image px (default 1200, max 2400) |
board_library Search illustrations
Search the offline science illustration library (~2000 Bioicons: anatomy, organs, cells, blood and immunology, microbes, viruses, DNA, plants, animals, lab equipment). Returns icon ids for an artifact {type:'icon', icon:id, x, y, width}. No query lists the categories.
| Parameter | Type | Description |
|---|---|---|
category | string | Category substring |
limit | number | Default 25 |
query | string | Keywords, e.g. 'heart cross section' |
board_save Save board
Save the board as a named snapshot, list snapshots, or load one (replaces the whole board; needs baseRevision from board_read). Details: board_docs saves.
| Parameter | Type | Description |
|---|---|---|
action * | load replaces the board | |
baseRevision | integer | Required for load |
name | string | [A-Za-z0-9._-], default 'default' |
board_docs Board reference
Reference for the blackboard: artifact formats with examples (plot, svg, mermaid, molecule, icon), marks, equations, chapters and camera, animation, layout and style, saves. Call it before using a format for the first time.
| Parameter | Type | Description |
|---|---|---|
topic * | string | overview lists what you can draw |