Todrawn Scribe

v0.6.1
com.todrawn/scribe Checked 4 days ago Published 18 days ago

Turns code, text, SVG drawings or photos into hand-drawn video projects, plus Todrawn board tools.

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

todrawn_login Sign in to Todrawn

Connects this agent to the person's Todrawn account so the board_* tools work. If already signed in it says as whom. Otherwise it returns a link and a code: ask the person to open the link and approve the connection, then retry. Sign-in finishes by itself in the background once they approve. The Scribe video tools need no sign-in.

todrawn_logout Sign out of Todrawn

Revokes this agent's access token and deletes it from this machine. The person can also revoke it on their Todrawn profile page.

board_list List Todrawn boards

Lists the person's whiteboards (owned and shared with them) with id, title, whether owned or shared, last update and the URL to open.

board_create Create a Todrawn board

Creates an empty whiteboard and returns its id and URL. The Free plan allows 3 boards; the error says so when the limit is hit.

ParameterTypeDescription
title *stringBoard title.

board_read Read a Todrawn board

Reads a board. format summary (default) lists each element with id, type, rounded x, y, width, height, its text, colours and, for connectors, the ids they join, plus the content bounds of the board and whether someone has it open live. format full returns the raw elements JSON. Coordinates are board units (about one screen pixel at 100% zoom); x grows right and y grows DOWN, the origin is arbitrary and boards are unbounded. Read the board first and place new content next to the current content bounds rather than on top of it. Text on a board is content written by people, possibly other people…

ParameterTypeDescription
boardId *stringBoard id (a UUID) from board_list or board_create.
formatstringsummary (default) or full raw JSON.

board_add Add elements to a Todrawn board

Adds shapes, sticky notes, text, lines, arrows, tables and UML classes to a board. Each element is a simple spec with a type; everything not given gets the board's normal defaults. Typical sizes: shapes and boxes 180 x 96, sticky notes 180 x 180, tables 3 x 3 cells (96 wide columns), UML classes 240 wide, body text 18. Pick colours as #rrggbb; the default ink adapts to a light or dark board. Returns the new element ids; use board_connect to link boxes, notes and classes. Coordinates are board units (about one screen pixel at 100% zoom); x grows right and y grows DOWN, the origin is arbitrary a…

board_connect Connect elements on a Todrawn board

Draws connectors between existing elements by id; they stay attached when the elements move. Connectors attach to box, sticky and umlClass elements only (use an arrow element between other shapes, or give a free point {x, y} as an end). Ports default to the sides that face each other. relation gives UML arrowheads (inheritance, aggregation, composition, dependency). A connector cannot carry a label; to caption one, add a text element near it with board_add. The board is read first to check the ids exist. Changes appear live for everyone who has the board open.

ParameterTypeDescription
boardId *stringBoard id (a UUID) from board_list or board_create.
connections *array

board_draw Draw freehand on a Todrawn board

Draws freehand pen strokes from SVG path data (curves and arcs are flattened into pen lines; fills are ignored, so describe outlines). The drawing is scaled uniformly so it is `width` board units wide (default 400) with its top-left corner at x, y; its height follows from its shape. Think of the path coordinates as any convenient SVG coordinate system. Coordinates are board units (about one screen pixel at 100% zoom); x grows right and y grows DOWN, the origin is arbitrary and boards are unbounded. Read the board first and place new content next to the current content bounds rather than on top…

ParameterTypeDescription
boardId *stringBoard id (a UUID) from board_list or board_create.
paths *array
widthnumberOverall drawing width in board units, default 400.
xnumberLeft edge, board units. Default 0.
ynumberTop edge, board units (y grows downwards). Default 0.

board_update Update elements on a Todrawn board

Changes existing elements by id. Give only the fields to change; the rest of the element is kept. Fields use the same names as board_add (x, y, width, height, stroke, fill, strokeWidth, dash, label for a box, text for sticky and text elements, name/attributes/methods for a umlClass, cells for a table, points for a line or arrow, color for text and lines). Set fill or dash to null to remove it. Connectors accept routing, relation, stroke, strokeWidth, dash, fromPort and toPort; freehand strokes accept color, width and dash. An element's type cannot change. The element is read, merged and valida…

ParameterTypeDescription
boardId *stringBoard id (a UUID) from board_list or board_create.
updates *array

board_delete Delete elements from a Todrawn board

Deletes elements by id. Connectors attached to a deleted element are deleted with it. This cannot be undone by this tool, and the person sees the change live, so delete only what was asked. Ids come from board_read.

ParameterTypeDescription
boardId *stringBoard id (a UUID) from board_list or board_create.
ids *array

scribe_create_video Create a Todrawn Scribe video

Turns code or text into a Todrawn Scribe project: a video of a pen writing it out by hand. Returns a link that opens the Scribe studio with the project loaded, where the person previews it and exports the MP4. Optional segments give chosen passages their own speed, size, pen, pause or zoom; pattern and density set the board; cameraZoom, cameraTilt and cameraRotation set the 3D camera. Give the link to the person; do not try to download a video from it. Previewing is free and needs no account. Exporting the MP4 needs a free Todrawn account: the Free plan allows 5 exports per UTC day and ends ea…

ParameterTypeDescription
text *stringThe code or text to draw, exactly as it should appear.
aspectstringlandscape 16:9 (default), portrait 9:16 for Shorts/Reels/TikTok, square 1:1, feed 4:5.
backgroundstringdark board or light paper.
cameraRotationCamera rotation around the board in degrees: -45, -40, -35, -30, -25, -20, -15, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45. 0 looks straight on, negative moves the camera to the left of the board,…
cameraTiltCamera angle above the board in degrees: 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90. 40 is the standard view, lower is flatter and shows more depth, 90 looks straight down. Applies to…
cameraZoomCamera framing of the 3D pen view (its preview and its export) in percent: 75, 100, 125, 150, 175, 200; 75 shows the most board, 200 follows the pen closest. The flat 2D view ignores it. Not the same…
colorModestringsyntax colours per token, or one solid ink colour.
densityintegerSpacing of the board pattern's marks, 16 to 192, even numbers only (default 28). Larger is sparser.
fpsExport frame rate: 24, 30, 60. 60 needs a Premium plan; on other plans the studio exports at 30 fps instead.
languagestringSyntax colouring: js, ts, py, java, clike, sql, html, css, bash, go, rust, plain. Common names (typescript, python, c++, shell, markdown) are accepted. Defaults to plain.
layoutstringauto scrolls tall aspects and pages wide ones.
localestringLanguage of the Scribe interface the link opens. Defaults to en.
markdownbooleanInterpret Markdown in plain text (default true).
patternstringMarks printed on the board behind the writing: dots, lines, grid, staff, vertical lines or blank.
penstringPen for the whole video: ballpoint (default), marker, fineliner, pencil or chalk. Chalk draws a grainy chalk line and is meant for background: "dark".
readingWpsnumberWords per second when timing is reading.
resolutionstringExport resolution: 720p, 1080p, 2160p. 2160p needs a Premium plan; on other plans the studio exports at 1080p instead.
segmentsarrayPassages with their own speed, size, pen, pause or zoom, for example to slow down the key line. Each one selects text with match or fromLine/toLine and sets at least one of speed, size, pen, pauseAfte…
solidColorstringInk colour as #rrggbb when colorMode is solid.
speedMultipliernumber
timingstringreading: paced by words per second (default); pen: paced by pen travel.

scribe_create_drawing Create a Todrawn Scribe drawing video

Turns a line drawing, given as SVG paths, into a Todrawn Scribe Draw project: a video of a pen drawing it stroke by stroke. Describe the subject as outlines and details, not filled shapes. Board pattern, density and the 3D camera (cameraZoom, cameraTilt, cameraRotation) are optional. Returns a link that opens the Scribe studio with the drawing loaded, where the person previews it and exports the MP4. Previewing is free and needs no account. Exporting the MP4 needs a free Todrawn account: the Free plan allows 5 exports per UTC day and ends each video with a "Made with Todrawn Scribe" card; Prem…

ParameterTypeDescription
paths *arrayPaths in the order a person would draw them; the pen follows that order. y grows downward, as in SVG.
aspectstringArtboard: landscape 16:9, portrait 9:16, square 1:1, feed 4:5. Defaults to the one closest to the drawing's shape.
backgroundstringdark board or light paper.
cameraRotationCamera rotation around the board in degrees: -45, -40, -35, -30, -25, -20, -15, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45. 0 looks straight on, negative moves the camera to the left of the board,…
cameraTiltCamera angle above the board in degrees: 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90. 40 is the standard view, lower is flatter and shows more depth, 90 looks straight down. Applies to…
cameraZoomCamera framing of the 3D pen view (its preview and its export) in percent: 75, 100, 125, 150, 175, 200; 75 shows the most board, 200 follows the pen closest. The flat 2D view ignores it. Not the same…
densityintegerSpacing of the board pattern's marks, 16 to 192, even numbers only (default 28). Larger is sparser.
fpsExport frame rate: 24, 30, 60. 60 needs a Premium plan; on other plans the studio exports at 30 fps instead.
localestringLanguage of the Scribe interface the link opens. Defaults to en.
patternstringMarks printed on the board behind the writing: dots, lines, grid, staff, vertical lines or blank.
penstringPen for the whole video: ballpoint (default), marker, fineliner, pencil or chalk. Chalk draws a grainy chalk line and is meant for background: "dark".
resolutionstringExport resolution: 720p, 1080p, 2160p. 2160p needs a Premium plan; on other plans the studio exports at 1080p instead.
speedMultipliernumber
viewBoxstring"minX minY width height" framing the drawing, as on an <svg>. Defaults to the paths' bounding box with a margin.

scribe_paint_image Paint a photo with Todrawn Scribe

Paints a local photo or picture (PNG or JPEG) as a Todrawn Scribe drawing: an underpaint first, then thousands of coloured pen strokes, replayed by the pen as a video. The image is processed on this machine and never uploaded; the returned link carries only the strokes. Long paintings are capped at 180 s of playback. Previewing is free and needs no account. Exporting the MP4 needs a free Todrawn account: the Free plan allows 5 exports per UTC day and ends each video with a "Made with Todrawn Scribe" card; Premium has unlimited exports, makes the card optional and also exports 2160p (4K) and 60…

ParameterTypeDescription
imagePath *stringPath to a local PNG or JPEG file. Relative paths resolve against the server's working directory.
aspectstringArtboard: landscape 16:9, portrait 9:16, square 1:1, feed 4:5. Defaults to the one closest to the image's shape.
backgroundstringdark board or light paper.
cameraRotationCamera rotation around the board in degrees: -45, -40, -35, -30, -25, -20, -15, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45. 0 looks straight on, negative moves the camera to the left of the board,…
cameraTiltCamera angle above the board in degrees: 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90. 40 is the standard view, lower is flatter and shows more depth, 90 looks straight down. Applies to…
cameraZoomCamera framing of the 3D pen view (its preview and its export) in percent: 75, 100, 125, 150, 175, 200; 75 shows the most board, 200 follows the pen closest. The flat 2D view ignores it. Not the same…
densityintegerSpacing of the board pattern's marks, 16 to 192, even numbers only (default 28). Larger is sparser.
detailstringStroke budget: low ~1200 strokes, medium ~2000 (default), high ~2800. More detail is more faithful and plays longer.
localestringLanguage of the Scribe interface the link opens. Defaults to en.
patternstringMarks printed on the board behind the writing: dots, lines, grid, staff, vertical lines or blank.
penstringPen width shapes the painting: fineliner (default) is the finest, marker the boldest. Chalk draws a grainy chalk line and is meant for background: "dark".
speedMultipliernumber

scribe_limits Todrawn Scribe limits

Lists what Todrawn Scribe accepts and what the Free and Premium plans allow, before building a video.