scatterboard-mcp

v0.3.0
scatterboard-mcp Checked 3 days ago Published 27 days ago

Localhost bridge + MCP stdio server for Scatterboard; pairs a live app tab with AI agents

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

sb_open

Open Scatterboard in the default browser with a pairing URL; call this first when no session is connected

ParameterTypeDescription
urlstringapp URL override, defaults to the deployed app

sb_status

Bridge status: whether a Scatterboard tab is connected, plus the pairing URL

sb_boards

List all boards as {id,title,parentId,icon,color,grid,position,presentOpts}

sb_state

What is open right now: {boardId, selection, view {x,y,z}, presenting, locked, connected}

sb_labels

List labels ({id,boardId,name,color}); boardId filters to one board, omitted returns all

ParameterTypeDescription
boardIdstring

sb_openboard

Open a board by id in the connected tab

ParameterTypeDescription
id *string

sb_elements

List elements on a board (default: the open board), each with id/type/x/y/w/content/rect

ParameterTypeDescription
boardIdstring

sb_get

Get one element by id

ParameterTypeDescription
id *string

sb_create

Create a card. type: note|column|board|todo|heading|swatch|line|comment|link|embed|document|sketch|annotation|table (image/file via sb_upload). props: {x,y,w,color,parentId("unsorted"|columnId|null),boardId,labels,reactions} plus per-type fields: text/html (note,heading,document), level (heading), title (todo,column,board,document,table), showTitle and items [{text,done,dueAt,dueTime,recur{f,n},assignee:"self",reactions}] (todo), text/items/add/anchorId (comment), url/title/caption/showPreview/desc/image (link), kind/url/title/caption/showPreview (embed), value/caption/showValue (swatch), from…

ParameterTypeDescription
type *string
propsobject

sb_patch

Patch an element: top fields x,y,w,z,locked,color,boardId,parentId,labels,reactions,syncGroup,anchorId (null clears) plus the per-type content props from sb_create

ParameterTypeDescription
id *string
patch *object

sb_remove

Move an element to trash (undoable)

ParameterTypeDescription
id *string

sb_connect

Draw a connector line between two cards

ParameterTypeDescription
from *string
to *string
dashedboolean
fromMarkerstring
labelstring
routestring
toMarkerstring
weightstring

sb_trash

List trashed elements as {id, deletedAt, el}

sb_restore

Restore a trashed element to a board (default: the open board); x/y default to its old spot

ParameterTypeDescription
id *string
boardIdstring
xnumber
ynumber

sb_emptytrash

Empty the trash permanently (one undoable entry)

sb_select

Select elements by id

ParameterTypeDescription
ids *array

sb_view

Pan/zoom the viewport: center board point (x,y) at zoom z; omitted fields keep current values

ParameterTypeDescription
xnumber
ynumber
znumber

sb_present

Presentation mode: on enters, off exits; focus dims unselected cards, comments hides comment pins, edit prevents editing (per-board, persisted)

ParameterTypeDescription
commentsboolean
editboolean
focusboolean
onboolean

sb_snapshot

PNG raster of a board (default: the open board), returned as an image. x,y,w,h crop to a board-space region (all four required together); scale defaults to 2. Not a version-history snapshot; see sb_snapshots

ParameterTypeDescription
boardIdstring
hnumber
scalenumber
wnumber
xnumber
ynumber

sb_templates

List templates (builtin presets and saved) as {id,name,builtin,elements}

sb_instantiate

Instantiate a template into a new board: child of boardId with a board card at x,y (default: open board, viewport center); boardId null makes a root project board and opens it

ParameterTypeDescription
id *string
boardIdstring | null
xnumber
ynumber

sb_savetemplate

Save a board (default: the open board) as a reusable template

ParameterTypeDescription
boardIdstring
namestring

sb_upload

Create an image or file card from base64 data (or a base64 data URL). Type comes from the data URL, else mime, else application/octet-stream; image/* gets a downscaled image card (caption applies), anything else a file card

ParameterTypeDescription
data *string
boardIdstring
captionstring
mimestring
namestring
parentIdstring
xnumber
ynumber

sb_export

Export a board (default: the open board). format: png (image), pdf, md, txt, doc, json, zip (media files), csv (one table card; id required). subs includes sub-boards in text exports; hi renders pdf at 2x. Returns {name,mime,dataUrl} or {name,mime,text}

ParameterTypeDescription
format *string
boardIdstring
hiboolean
idstring
subsboolean

sb_import

Import a board JSON export (the text produced by format=json), attached under boardId or the Home/root board; opens the imported board

ParameterTypeDescription
data *string
boardIdstring

sb_unfurl

Fetch the link/embed card's page preview and back-fill title/desc/image (link cards need the app's unfurl setting on)

ParameterTypeDescription
id *string

sb_duplicate

Clone elements in place with fresh ids (selection, column membership and line endpoints follow); dx/dy offset defaults to 24

ParameterTypeDescription
ids *array
dxnumber
dynumber

sb_undo

Undo the last change

sb_redo

Redo

sb_batch

Run several commands as one undo entry; on any failure nothing changes. commands: [{method,params}]

ParameterTypeDescription
commands *array

sb_dispatch

Dispatch a raw store action: element.*, board.*, label.*, template.patch, template.delete or batch (trash.*, board.delete and template.create are rejected; use sb_restore/sb_emptytrash/sb_removeboard/sb_savetemplate)

ParameterTypeDescription
action *object

sb_removeboard

Delete a board and its whole subtree: elements, labels, sub-boards and dangling board cards elsewhere. One undoable batch; fails on the last board

ParameterTypeDescription
id *string

sb_prefs

Read app prefs, or pass set:{key:value} to change one of: reminders, unfurl, noOverlap, ink, undoArrows, autoEdit, spellcheck, minimap, browserLang, welcomed, theme (light|dark), unsortedSort, currency, uiScale, guideAlpha

ParameterTypeDescription
setobject

sb_snapshots

List version-history snapshots {id,name,createdAt,auto}; pass id to browse the snapshot's boards and elements (for sb_restoresnapshot)

ParameterTypeDescription
idstring

sb_savesnapshot

Save the whole workspace as a named version-history snapshot

ParameterTypeDescription
namestring

sb_deletesnapshot

Delete a version-history snapshot by id

ParameterTypeDescription
id *string

sb_restoresnapshot

Restore one board out of a snapshot into the live doc as a new sub-board: boardId picks the snapshot board (default: its root board), hostId picks the live parent board (default: a surviving root). Undoable; does not replace the workspace

ParameterTypeDescription
id *string
boardIdstring
hostIdstring