lousa

v0.1.1
io.github.henriquepe/lousa Checked 58 minutes ago Published 4 months ago

A whiteboard where AI agents draw their explanations as hand-drawn animated diagrams

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

create_board

Creates a board (a hand-drawn visual explanation) on Lousa and returns {id, url}. Open/share the url with the user — the drawing animates in as if sketched live. You author the drawing: think like a senior engineer sketching on a whiteboard. Coordinates: x grows right, y grows down; design within ~1600x1000 (exceed if needed). Guidelines: flow left-to-right or top-to-bottom; generous spacing (>=60 between shapes); few colors with meaning (blue components, green happy path, red errors/bottlenecks, gray context, purple storage); short labels; title via type=text size=32; caveats as type=note;…

ParameterTypeDescription
scene *arrayThe complete scene, in drawing order (titles and shapes before the arrows that connect them).
title *stringShort board title.
narrationstring1-2 sentences about what the drawing shows (shown as a card in the viewer).
requestsarrayThe user request(s) that originated the board.
ttlHoursnumberHours until the board expires and is deleted (default 12; 0 = permanent; max 720). Expiry slides on every update. Use 0 only if the user asks to keep the board.

update_board

Updates an existing board. The scene you send REPLACES the current one entirely: keep unchanged elements byte-identical (same id and fields) — the viewer animates only what changed, live in the user's open tab; to remove an element, omit it. If the user's request references something they pointed at ("what I selected", "this part"), call get_selection first to learn the target.

ParameterTypeDescription
id *string
appendRequeststringThe user's follow-up request, for the board history.
narrationstring
scenearrayThe complete scene, in drawing order (titles and shapes before the arrows that connect them).
titlestring
ttlHoursnumberChanges expiry (default 12h since last update; 0 = permanent). Use 0 when the user asks to keep/pin the board.

get_board

Reads a full board (title, narration, scene, requests, selection).

ParameterTypeDescription
id *string

list_boards

Lists existing boards (id, title, narration, element count, dates).

get_selection

Returns what the user selected in the viewer (click toggles; Esc clears): {selection: ids, selectionAt, elements}. Use when the user references "what I selected" / "this part" — those elements are the target of the request. An old selectionAt may be residue from a previous request; when in doubt, confirm the target.

ParameterTypeDescription
id *string

delete_board

Deletes a board permanently.

ParameterTypeDescription
id *string