Skip to main content
Glama
Brilliant MCP

Brilliant MCP

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BRILLIANT_MCP_SRCNoOptional door tag that is added to the pairing link as the utm_content attribution param (equivalent to the --src <tag> CLI flag). It tags the install path and says nothing about the user, machine or designs. No API key is needed.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Brilliant is not connected yet. The tools are listed, and the first tool call opens https://brilliant.design/playground in the browser to pair (Chrome, Edge or Firefox; allow the local network prompt), unless the Brilliant desktop app is running. If a call answers that Brilliant is not connected, tell the user what to open and run the call again.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_selectionA

Get the IDs and blueprint of currently selected elements on a specific canvas. Returns selected element IDs and their blueprint representation including descendants. A selection past 1,000 elements (descendants included) is summarized: counts by type (countsByType), union bounds (worldBounds), the first 100 ids and a note, beside the true count. Use read with a scope of ids or #refs for full subtrees. (External MCP clients: call init first for usage docs. Hosted-CLI and sub-agents have docs pre-loaded.)

exportA

Export elements in the specified format and return the data. Raster formats (png, jpeg, webp) return an inline image. SVG returns raw SVG markup as text. HTML returns an HTML/CSS snippet as text. PDF returns base64-encoded data as text. Video formats (mp4, mov) write a file (large binary is never inlined) and return its path; use duration (seconds, max 30) and fps to control length. MOV supports a transparent background; MP4 does not. With motion (mp4/mov) it renders a FILM, Motion/<film>.bm beside the canvas or at the project root: STATE frames tweened by element name, per-frame blueprint patch lines for the procedural rest (knowledge motion/core and motion/grammar, runner tool/motion/render.mjs). "replay" (animated reveal) needs an interactive recording session and is not available headlessly: it returns a clear error. When outputPath is provided, writes to that file path instead and returns a confirmation. In the web editor there is no local filesystem: outputPath is not available (omit it and the data returns inline), and video export (mp4/mov) is not available at all (use png/jpeg/webp/svg/pdf/html, or export from the desktop app). (External MCP clients: call init first for usage docs. Hosted-CLI and sub-agents have docs pre-loaded.)

readA

Read the project's documents, each answered as the fence you would send back through edit: a canvas as bl with file(path) first and its rows (ids bound), a film as bm, a design system as ```ds. A canvas answer lists the films that name it above its fence (films: Motion/Launch.bm). Pass paths (canvas paths such as "Projects/Dashboard", "Motion/Launch.bm", "Styles/default.ds"), ids (element ids or #refs, with their canvas in paths) and/or the filters (query, textContent, type, fillColor, componentName) to find elements across canvases. format is "blueprint" (default), "summary" (compact metadata) or "skeleton" (summary plus the tokenRefs, no geometry), the fence the carrier. (External MCP clients: call init first for usage docs. Hosted-CLI and sub-agents have docs pre-loaded.)

list_projectsA

List every project this user owns, each with its display name, key (a folder path or brilliant-cloud:// key), backing (local/synced/cloud), open state (active tab / background tab / closed), canvas count when known, and whether it is published, with its url, visibility, audience and your role where known. Pass a name or key from this list as the project argument on init or any canvas tool to work in a project other than the one on screen, including a closed one.

editA

Edit the project's documents. text holds one or more fences, applied in order: bl (a canvas, blueprint rows: omit ids for new elements, lead with an id or #ref to modify, delete(#ref) to remove, preview(#a, #b) as a row for a screenshot), html (a canvas, HTML with inline CSS converted to elements), ds (a design system, statements spliced), bm (a film, the whole document replaced). The first row of every fence is file(path): file("Projects/Launch"), file("Styles/default.ds"), file("Motion/Launch.bm"). A call holds fences on any number of documents, canvases included, applied in order, one result entry per fence; a #ref and a // label checkpoint belong to the canvas of their fence. A bl fence's rows apply as they go and the first bad row halts with one line. The answer is the block result: the canvas fact, what changed, the refs, the diagnostics, the notes and a screenshot of the preview row. Pass your sessionId from init. (External MCP clients: call init first for usage docs. Hosted-CLI and sub-agents have docs pre-loaded.)

create_modify_elementsA

Retired. A call answers the one line that names the door: edit({ text }) to write, read({ paths }) to read.

create_htmlC

Retired. A call answers the one line that names the door: edit({ text }) to write, read({ paths }) to read.

lookupC

Retired. A call answers the one line that names the door: edit({ text }) to write, read({ paths }) to read.

read_objects_resultB

Retired. A call answers the one line that names the door: edit({ text }) to write, read({ paths }) to read.

objects_resultB

Retired. A call answers the one line that names the door: edit({ text }) to write, read({ paths }) to read.

waitA

Wait for a long call to end, instead of sleeping and checking. job is the id from a background: true call of edit, export or render_ui, or the requestId (or job: line) of an edit, also one whose call timed out on your side. Blocks until the job is done or failed and answers its result, the answer the call itself would have given. running means your timeout ran out and the job goes on: call wait again. superseded means the job ended with an earlier app run or its answer aged out: read the canvas. If this call cannot reach the app at all, the app is down: run scripts/mcp-wait-up.sh.

convert_htmlA

Convert HTML with inline CSS to Brilliant blueprint lines WITHOUT creating anything: the exact lines edit (html) would write, per input string, plus the converter's notes. Batch many strings (the frames of a composition) in one call as frames. With layout: true each frame is also built into a throwaway world and the answer adds every element's laid-out box (x, y, w, h in canvas px, the unrotated box), its rotation, opacity, first solid fill, name, type and text, so the layout is the app's auto layout, never a guess. A data-id or data-key attribute is the element's NAME (stable identity across frames, the handle a motion patch line leads with as #name); id="x" is a #x ref as in edit (html). Give the outermost element an explicit px width and height so percentage sizes and offsets resolve. Same CSS support as edit (html), plus transform translate()/scale()/rotate() (fractional degrees) folded into p()/s()/rot().

execute_commandsA

Execute one or more commands by ID. Accepts an array of commands that share a single canvasId. Commands run sequentially, stopping on first error. Use command IDs from the skill docs. Pass previewIds + previewScale: 2 for inline PNG verification. Visually inspect every preview, describe what you see, fix issues. (External MCP clients: call init first for usage docs. Hosted-CLI and sub-agents have docs pre-loaded.)

get_knowledgeA

Load design knowledge by key. Blueprint DSL work loads it first; an html fence needs none. Pass keys from the available keys list returned by init (e.g. "blueprint/core", "design/colors", "effects/glass"). By default a key also pulls in its prerequisite docs (its assumes: deps); the response names them under "Also auto-loaded" so you can see what was bundled. Pass includeDependencies: false to load ONLY the keys you name (the skipped prerequisites are listed so you can request them deliberately).

initA

Bootstrap a design session. Returns a unique session ID, session context (canvas ID, repo path), and documentation. Call this first. Pass the returned session ID as the sessionId argument on every subsequent edit / read call: this scopes your refs/design-system state AND gives you your own distinct labelled cursor on the canvas (concurrent agents that echo their IDs never share one cursor). Optionally pass a short agentName (2-3 words) to label that cursor. Pass project (a name or key from list_projects) to bind this session to a project OTHER than the one on screen — including a project that is not open, which the agent reaches headlessly, or the absolute path of a project folder Brilliant has not seen yet (a new Git worktree), which it opens and lists. If you CANNOT read images, pass vision: false: preview requests then return a textual render summary instead of an inline PNG. Then write with edit: an html fence for most tasks (no knowledge loading needed), a bl fence (Blueprint DSL) for advanced features and edits, with its knowledge loaded first via get_knowledge.

generate_imageA

Generate an AI image and apply it as a fill on targetElementId. Target element must already exist — create it first (top-level hosted-CLI agents: emit an <edit> block; sub-agents and external MCP clients: call edit), then call generate_image with that element's id or #ref. Call get_knowledge(["images/prompts","images/integration","images/references"]) for prompt engineering, quality presets, and parallel-generation guidance. Runs on your own Google key when one is set (Settings > Your own AI > Google), otherwise on Brilliant AI for a signed-in account.

generate_svgA

Generate editable vector graphics (SVG) from a text prompt and place them on the canvas as native editable shapes. Use for icons, logos, illustrations, diagrams — anything that should stay crisp and remain editable. For photos / realistic images use generate_image instead. Optional referenceElementIds (up to 4) export to PNG and steer style. Use n (1–4) for parallel variations of a single prompt, or targets to fan out distinct prompts in parallel. Call get_knowledge(["svg/prompts","svg/integration"]) for prompt patterns and decision rules. Requires Quiver API key.

vectorize_imageA

Convert a raster image element on the canvas into editable vector paths. The new vector elements are placed on the canvas; the original raster element is left untouched (delete it manually if no longer needed). Use for: importing PNG/JPEG content the user wants to edit as vectors, cleaning up screenshots into icons, or converting AI-generated raster images into editable shapes. Requires Quiver API key.

remove_backgroundA

Remove the background from real photos on the canvas: the subject keeps its exact pixels (the real face, the real product) and the background becomes transparent, in place, in the same image fill (crop, scale mode and opacity kept). Use it instead of generate_image whenever the image is a real photo and the user wants it cut out: "a real photo, keep the pixels, cut the background". generate_image regenerates the picture and invents new pixels. ids: the element ids (or #refs) whose image fills to cut (a frame, group or instance id reaches every image inside it); one request per distinct image. A cut fill reads back as img(, ..., src()); execute_commands restore_background puts the original back. Answers the new asset path per element, or the named failure (no subject, allowance used, lane unavailable, image missing). add_cutout_outline then traces an outline around the cut subject. Runs on Brilliant AI: a signed-in account's Brilliant AI usage; in the built-in chat, a signed-out user gets the free daily cutouts of the /remove-background page with no account, and is told when they are used up.

add_cutout_outlineA

Add an outline around the subject of an image whose background was removed (remove_background first): the cutout's visible edge is traced into a new vector element placed directly above the image, aligned with its crop, rotation, flip and scale; stroke only, no fill, outside stroke, round joins (the sticker look). The outline is an ordinary element afterwards (restyle, move or delete it). ids: the image element ids (or #refs; a frame, group or instance id reaches the cut images inside it). color: optional #RRGGBB stroke color (default plain white). width: optional stroke width in px (default 2 percent of the image's short edge). Answers the new outline id per image, or the honest refusal (no removed background, nothing visible to trace, a tiled image). Runs locally: no Brilliant AI usage.

capture_uiA

Screenshot a part of Brilliant's own UI (a toolbar, the palette / color picker, a panel) to an image file. Optionally stage commands to drive the UI into a state first, and draw highlight boxes over sub-targets. target is a capture-registry id such as "full-ui", "top-toolbar", "left-toolbar", "right-toolbar", "bottom-toolbar", "command-palette", or "ai-chat-panel". Chrome only by default on every host (the canvas area is left empty); pass includeCanvas:true (full-ui only) to composite the GPU canvas underneath. Writes lossless WebP by default. Desktop-only: it writes an image file, so it is not available in the web editor.

list_capture_targetsA

List the capture-registry ids currently mounted in Brilliant's UI (the valid "target"/"cropTo"/highlight ids for capture_ui). Takes no arguments. Returns a sorted JSON array; each entry is {id, mounted, rect: [x, y, w, h] in logical global pixels, children: [nested ids]}.

render_uiA

Render a Brilliant UI component into an EXACT declarative state and capture it to an image file, offscreen, without touching the live app. component is a stager id (call list_stagers to enumerate them and their state schemas); state is the component-specific declarative state. Optionally draw highlight boxes over sub-targets (the scene registers "ui-stage.*" ids) and override the stage size. Writes lossless WebP by default. Desktop-only: it writes an image file, so it is not available in the web editor.

list_stagersA

List the UI Stage components render_ui can render, with each component's default logical size and its declarative state schema. Takes no arguments. Returns a JSON array; each entry is {component, defaultSize: [w, h], stateSchema}.

send_feedbackA

Open the Brilliant feedback card for the user to review and send. This does NOT send: the card opens, the user presses Send, and you tell them it is open and waiting (never claim it was sent). message is OPTIONAL (pre-fill a draft or open empty); attachments is tolerated but ignored (nothing about the user's world is ever attached). Feedback is a routing decision, not one surface, and consent scales with what leaves the machine: the user's words move by the user's act, the user's context moves only per-item opt-in, and your own observations ride telemetry, never GitHub or email. Offer it proactively, once and calmly (at most once per session AND once per class), when you hit a wall or a missing capability, when the user asks for something the product cannot do, or when the user is frustrated. Before running the routing flow (card vs GitHub issue vs email vs Discord), load the full playbook with get_knowledge(["reference/feedback"]).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 25 tools

Disambiguation3/5

The active tools mostly target distinct operations, but five retired aliases (read_objects_result, objects_result, create_modify_elements, create_html, lookup) still appear alongside the tools they redirect to. There is also potential overlap between edit and execute_commands, and multiple export/capture/render image tools require careful reading to distinguish.

Naming Consistency3/5

Names are consistently snake_case, but verb conventions are mixed: single verbs (read, edit, export, wait, init), verb_noun patterns, noun_result names, and compound verbs like create_modify_elements. The names remain readable, but the set does not follow one predictable pattern.

Tool Count3/5

At 25 tools the surface is heavy, and the count is inflated by five retired tools that do not earn their place. The remaining active tools span a broad design-editor domain, so the count is not extreme, but it is borderline for the scope.

Completeness4/5

The set covers the core design lifecycle well: session init, project listing/binding, document read/edit, selection, export, knowledge loading, image generation/processing, and UI capture. Minor gaps remain around project creation/deletion/publishing and explicit document lifecycle management.

Maintenance

ActivityNo data
ResponsivenessOutdated data