scatterboard-mcp
v0.3.0Localhost 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
| Parameter | Type | Description |
|---|---|---|
url | string | app 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
| Parameter | Type | Description |
|---|---|---|
boardId | string |
sb_search
Find cards and boards by text. query required; boardId scopes to one board (default: the open board); all:true searches every board
| Parameter | Type | Description |
|---|---|---|
query * | string | |
all | boolean | |
boardId | string |
sb_openboard
Open a board by id in the connected tab
| Parameter | Type | Description |
|---|---|---|
id * | string |
sb_elements
List elements on a board (default: the open board), each with id/type/x/y/w/content/rect
| Parameter | Type | Description |
|---|---|---|
boardId | string |
sb_get
Get one element by id
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
type * | string | |
props | object |
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
| Parameter | Type | Description |
|---|---|---|
id * | string | |
patch * | object |
sb_remove
Move an element to trash (undoable)
| Parameter | Type | Description |
|---|---|---|
id * | string |
sb_connect
Draw a connector line between two cards
| Parameter | Type | Description |
|---|---|---|
from * | string | |
to * | string | |
dashed | boolean | |
fromMarker | string | |
label | string | |
route | string | |
toMarker | string | |
weight | string |
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
| Parameter | Type | Description |
|---|---|---|
id * | string | |
boardId | string | |
x | number | |
y | number |
sb_emptytrash
Empty the trash permanently (one undoable entry)
sb_select
Select elements by id
| Parameter | Type | Description |
|---|---|---|
ids * | array |
sb_view
Pan/zoom the viewport: center board point (x,y) at zoom z; omitted fields keep current values
| Parameter | Type | Description |
|---|---|---|
x | number | |
y | number | |
z | number |
sb_present
Presentation mode: on enters, off exits; focus dims unselected cards, comments hides comment pins, edit prevents editing (per-board, persisted)
| Parameter | Type | Description |
|---|---|---|
comments | boolean | |
edit | boolean | |
focus | boolean | |
on | boolean |
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
| Parameter | Type | Description |
|---|---|---|
boardId | string | |
h | number | |
scale | number | |
w | number | |
x | number | |
y | number |
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
| Parameter | Type | Description |
|---|---|---|
id * | string | |
boardId | string | null | |
x | number | |
y | number |
sb_savetemplate
Save a board (default: the open board) as a reusable template
| Parameter | Type | Description |
|---|---|---|
boardId | string | |
name | string |
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
| Parameter | Type | Description |
|---|---|---|
data * | string | |
boardId | string | |
caption | string | |
mime | string | |
name | string | |
parentId | string | |
x | number | |
y | number |
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}
| Parameter | Type | Description |
|---|---|---|
format * | string | |
boardId | string | |
hi | boolean | |
id | string | |
subs | boolean |
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
| Parameter | Type | Description |
|---|---|---|
data * | string | |
boardId | string |
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)
| Parameter | Type | Description |
|---|---|---|
id * | string |
sb_duplicate
Clone elements in place with fresh ids (selection, column membership and line endpoints follow); dx/dy offset defaults to 24
| Parameter | Type | Description |
|---|---|---|
ids * | array | |
dx | number | |
dy | number |
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}]
| Parameter | Type | Description |
|---|---|---|
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)
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
set | object |
sb_snapshots
List version-history snapshots {id,name,createdAt,auto}; pass id to browse the snapshot's boards and elements (for sb_restoresnapshot)
| Parameter | Type | Description |
|---|---|---|
id | string |
sb_savesnapshot
Save the whole workspace as a named version-history snapshot
| Parameter | Type | Description |
|---|---|---|
name | string |
sb_deletesnapshot
Delete a version-history snapshot by id
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
id * | string | |
boardId | string | |
hostId | string |