Dembrandt

v0.43.0
io.github.dembrandt/dembrandt Checked 10 hours ago Published 2 days ago

Design tokens from any live site: colors, type, spacing, DTCG, Tailwind, drift checks.

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

get_design_tokens

Extract the full design system from a live website. Launches a real browser, navigates to the site, and returns production-ready design tokens: color palette (hex, RGB, LCH, OKLCH) with semantic roles and CSS custom properties, typography scale (families, fallbacks, sizes, weights, line heights, letter spacing by context), spacing system with grid detection, border radii, border patterns, box shadows for elevation, component styles (buttons with hover/focus states, inputs, links, badges), responsive breakpoints, logo and favicons, site name, the frameworks and libraries that build the UI, and…

ParameterTypeDescription
url *stringWebsite URL (e.g. example.com)
basicAuthstringHTTP Basic credentials as "user:password", for the requested site only
cookiestringCookie string for authenticated pages, e.g. "session=abc; token=xyz"
cookieFilestringPath to a cookie export: JSON array, Playwright storageState (cookies + localStorage), or Netscape cookies.txt
darkModebooleanExtract the dark theme: the page is rendered with prefers-color-scheme: dark
headerExtra HTTP header for the requested site only, e.g. "Authorization: Bearer eyJ...", or a list of them
mobilebooleanExtract from a mobile viewport instead of desktop
noSandboxbooleanDisable the browser sandbox, required inside Docker and most CI containers
pagesintegerExtract up to N pages and merge them into one token set. Pages are discovered from DOM links, or from sitemap.xml when sitemap is true. Merged tokens are markedly stronger than a single page.
pathsarrayExplicit extra paths on the same domain to extract and merge, e.g. ["/pricing", "/docs"]. Overrides page discovery.
sitemapbooleanDiscover the extra pages from sitemap.xml instead of DOM links. Alone it takes up to 20 pages; set pages to cap it
slowboolean3x timeouts for heavy SPAs
syncbooleanWait for the result directly instead of returning a job_id. Blocks 15-40s for one page, and proportionally longer for a multi-page crawl.
userAgentstringCustom user agent string
wcagbooleanInclude WCAG contrast analysis between palette colors

get_color_palette

Extract brand colors from a live website. Returns semantic colors (primary, secondary, accent, plus background and text promoted from the page surface and body text), full palette ranked by usage frequency and confidence (high/medium/low), CSS custom properties with their design-system names, and hover/focus state colors discovered by simulating real user interactions. Each color in hex, RGB, LCH, and OKLCH. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: wait on it with get_job_status, and pass the sam…

ParameterTypeDescription
url *stringWebsite URL (e.g. example.com)
basicAuthstringHTTP Basic credentials as "user:password", for the requested site only
cookiestringCookie string for authenticated pages, e.g. "session=abc; token=xyz"
cookieFilestringPath to a cookie export: JSON array, Playwright storageState (cookies + localStorage), or Netscape cookies.txt
darkModebooleanAlso extract dark mode palette
headerExtra HTTP header for the requested site only, e.g. "Authorization: Bearer eyJ...", or a list of them
mobilebooleanExtract from a mobile viewport instead of desktop
noSandboxbooleanDisable the browser sandbox, required inside Docker and most CI containers
pagesintegerExtract up to N pages and merge them into one token set. Pages are discovered from DOM links, or from sitemap.xml when sitemap is true. Merged tokens are markedly stronger than a single page.
pathsarrayExplicit extra paths on the same domain to extract and merge, e.g. ["/pricing", "/docs"]. Overrides page discovery.
sitemapbooleanDiscover the extra pages from sitemap.xml instead of DOM links. Alone it takes up to 20 pages; set pages to cap it
slowboolean3x timeouts for heavy SPAs
syncbooleanWait for the result directly instead of returning a job_id. Blocks 15-40s for one page, and proportionally longer for a multi-page crawl.
userAgentstringCustom user agent string
wcagbooleanInclude WCAG contrast analysis between palette colors

get_typography

Extract typography from a live website. Returns every font family with its fallback stack, the complete type scale grouped by context (heading, body, text, button, link, caption) with pixel and rem sizes, weights, line heights, letter spacing, and text transforms. The body context marks the dominant reading-text font; text marks other body-eligible copy. Also reports font sources: Google Fonts URLs, Adobe Fonts usage, and variable font detection. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: wait on i…

ParameterTypeDescription
url *stringWebsite URL (e.g. example.com)
basicAuthstringHTTP Basic credentials as "user:password", for the requested site only
cookiestringCookie string for authenticated pages, e.g. "session=abc; token=xyz"
cookieFilestringPath to a cookie export: JSON array, Playwright storageState (cookies + localStorage), or Netscape cookies.txt
darkModebooleanExtract the dark theme: the page is rendered with prefers-color-scheme: dark
headerExtra HTTP header for the requested site only, e.g. "Authorization: Bearer eyJ...", or a list of them
mobilebooleanExtract from a mobile viewport instead of desktop
noSandboxbooleanDisable the browser sandbox, required inside Docker and most CI containers
pagesintegerExtract up to N pages and merge them into one token set. Pages are discovered from DOM links, or from sitemap.xml when sitemap is true. Merged tokens are markedly stronger than a single page.
pathsarrayExplicit extra paths on the same domain to extract and merge, e.g. ["/pricing", "/docs"]. Overrides page discovery.
sitemapbooleanDiscover the extra pages from sitemap.xml instead of DOM links. Alone it takes up to 20 pages; set pages to cap it
slowboolean3x timeouts for heavy SPAs
syncbooleanWait for the result directly instead of returning a job_id. Blocks 15-40s for one page, and proportionally longer for a multi-page crawl.
userAgentstringCustom user agent string

get_component_styles

Extract UI component styles from a live website. Returns button variants with default, hover, active, and focus states (background, text color, padding, border radius, border, shadow, outline, opacity), input field styles (border, focus ring, padding, placeholder), link styles (color, text decoration, hover changes), and badge/tag styles. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: wait on it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_m…

ParameterTypeDescription
url *stringWebsite URL (e.g. example.com)
basicAuthstringHTTP Basic credentials as "user:password", for the requested site only
cookiestringCookie string for authenticated pages, e.g. "session=abc; token=xyz"
cookieFilestringPath to a cookie export: JSON array, Playwright storageState (cookies + localStorage), or Netscape cookies.txt
darkModebooleanExtract the dark theme: the page is rendered with prefers-color-scheme: dark
headerExtra HTTP header for the requested site only, e.g. "Authorization: Bearer eyJ...", or a list of them
mobilebooleanExtract from a mobile viewport instead of desktop
noSandboxbooleanDisable the browser sandbox, required inside Docker and most CI containers
pagesintegerExtract up to N pages and merge them into one token set. Pages are discovered from DOM links, or from sitemap.xml when sitemap is true. Merged tokens are markedly stronger than a single page.
pathsarrayExplicit extra paths on the same domain to extract and merge, e.g. ["/pricing", "/docs"]. Overrides page discovery.
sitemapbooleanDiscover the extra pages from sitemap.xml instead of DOM links. Alone it takes up to 20 pages; set pages to cap it
slowboolean3x timeouts for heavy SPAs
syncbooleanWait for the result directly instead of returning a job_id. Blocks 15-40s for one page, and proportionally longer for a multi-page crawl.
userAgentstringCustom user agent string

get_surfaces

Extract surface treatment tokens from a live website: border radii with element context (which radii are used on buttons vs cards vs inputs vs modals), border patterns (width + style + color combinations), and box shadow elevation levels. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: wait on it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_md or render_report instead of resending the extraction.

ParameterTypeDescription
url *stringWebsite URL (e.g. example.com)
basicAuthstringHTTP Basic credentials as "user:password", for the requested site only
cookiestringCookie string for authenticated pages, e.g. "session=abc; token=xyz"
cookieFilestringPath to a cookie export: JSON array, Playwright storageState (cookies + localStorage), or Netscape cookies.txt
darkModebooleanExtract the dark theme: the page is rendered with prefers-color-scheme: dark
headerExtra HTTP header for the requested site only, e.g. "Authorization: Bearer eyJ...", or a list of them
mobilebooleanExtract from a mobile viewport instead of desktop
noSandboxbooleanDisable the browser sandbox, required inside Docker and most CI containers
pagesintegerExtract up to N pages and merge them into one token set. Pages are discovered from DOM links, or from sitemap.xml when sitemap is true. Merged tokens are markedly stronger than a single page.
pathsarrayExplicit extra paths on the same domain to extract and merge, e.g. ["/pricing", "/docs"]. Overrides page discovery.
sitemapbooleanDiscover the extra pages from sitemap.xml instead of DOM links. Alone it takes up to 20 pages; set pages to cap it
slowboolean3x timeouts for heavy SPAs
syncbooleanWait for the result directly instead of returning a job_id. Blocks 15-40s for one page, and proportionally longer for a multi-page crawl.
userAgentstringCustom user agent string

get_spacing

Extract the spacing system from a live website: common margin and padding values sorted by frequency, pixel and rem values, and grid system detection (4px, 8px, or custom scale). Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: wait on it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_md or render_report instead of resending the extraction.

ParameterTypeDescription
url *stringWebsite URL (e.g. example.com)
basicAuthstringHTTP Basic credentials as "user:password", for the requested site only
cookiestringCookie string for authenticated pages, e.g. "session=abc; token=xyz"
cookieFilestringPath to a cookie export: JSON array, Playwright storageState (cookies + localStorage), or Netscape cookies.txt
darkModebooleanExtract the dark theme: the page is rendered with prefers-color-scheme: dark
headerExtra HTTP header for the requested site only, e.g. "Authorization: Bearer eyJ...", or a list of them
mobilebooleanExtract from a mobile viewport instead of desktop
noSandboxbooleanDisable the browser sandbox, required inside Docker and most CI containers
pagesintegerExtract up to N pages and merge them into one token set. Pages are discovered from DOM links, or from sitemap.xml when sitemap is true. Merged tokens are markedly stronger than a single page.
pathsarrayExplicit extra paths on the same domain to extract and merge, e.g. ["/pricing", "/docs"]. Overrides page discovery.
sitemapbooleanDiscover the extra pages from sitemap.xml instead of DOM links. Alone it takes up to 20 pages; set pages to cap it
slowboolean3x timeouts for heavy SPAs
syncbooleanWait for the result directly instead of returning a job_id. Blocks 15-40s for one page, and proportionally longer for a multi-page crawl.
userAgentstringCustom user agent string

get_motion

Extract the motion system from a live website: transition and animation durations with their usage counts, easing curves, the durations and easings used per component context (button, link, nav, card, modal), named keyframe animations, and the hover patterns discovered by simulating real interaction. Also returns gradients, which travel with motion as the decorative layer. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: wait on it with get_job_status.

ParameterTypeDescription
url *stringWebsite URL (e.g. example.com)
basicAuthstringHTTP Basic credentials as "user:password", for the requested site only
cookiestringCookie string for authenticated pages, e.g. "session=abc; token=xyz"
cookieFilestringPath to a cookie export: JSON array, Playwright storageState (cookies + localStorage), or Netscape cookies.txt
darkModebooleanExtract the dark theme: the page is rendered with prefers-color-scheme: dark
headerExtra HTTP header for the requested site only, e.g. "Authorization: Bearer eyJ...", or a list of them
mobilebooleanExtract from a mobile viewport instead of desktop
noSandboxbooleanDisable the browser sandbox, required inside Docker and most CI containers
pagesintegerExtract up to N pages and merge them into one token set. Pages are discovered from DOM links, or from sitemap.xml when sitemap is true. Merged tokens are markedly stronger than a single page.
pathsarrayExplicit extra paths on the same domain to extract and merge, e.g. ["/pricing", "/docs"]. Overrides page discovery.
sitemapbooleanDiscover the extra pages from sitemap.xml instead of DOM links. Alone it takes up to 20 pages; set pages to cap it
slowboolean3x timeouts for heavy SPAs
syncbooleanWait for the result directly instead of returning a job_id. Blocks 15-40s for one page, and proportionally longer for a multi-page crawl.
userAgentstringCustom user agent string

get_brand_identity

Extract brand identity from a live website: site name, logo (source, dimensions, safe zone), all favicon variants (icon, apple-touch-icon, og:image, twitter:image with sizes and URLs), what builds the UI with versions where recoverable (JS and meta frameworks, CSS frameworks, component libraries, site builders), icon systems, and responsive breakpoints. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: wait on it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, ge…

ParameterTypeDescription
url *stringWebsite URL (e.g. example.com)
basicAuthstringHTTP Basic credentials as "user:password", for the requested site only
cookiestringCookie string for authenticated pages, e.g. "session=abc; token=xyz"
cookieFilestringPath to a cookie export: JSON array, Playwright storageState (cookies + localStorage), or Netscape cookies.txt
darkModebooleanExtract the dark theme: the page is rendered with prefers-color-scheme: dark
headerExtra HTTP header for the requested site only, e.g. "Authorization: Bearer eyJ...", or a list of them
mobilebooleanExtract from a mobile viewport instead of desktop
noSandboxbooleanDisable the browser sandbox, required inside Docker and most CI containers
pagesintegerExtract up to N pages and merge them into one token set. Pages are discovered from DOM links, or from sitemap.xml when sitemap is true. Merged tokens are markedly stronger than a single page.
pathsarrayExplicit extra paths on the same domain to extract and merge, e.g. ["/pricing", "/docs"]. Overrides page discovery.
sitemapbooleanDiscover the extra pages from sitemap.xml instead of DOM links. Alone it takes up to 20 pages; set pages to cap it
slowboolean3x timeouts for heavy SPAs
syncbooleanWait for the result directly instead of returning a job_id. Blocks 15-40s for one page, and proportionally longer for a multi-page crawl.
userAgentstringCustom user agent string

compute_drift

Compare two dembrandt extractions and return a design-drift report: a 0-100 score (0 = identical), a stable/drift verdict, per-category scores, and the list of changed/added/removed tokens (colors, typography, spacing, radius, shadows). Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Use it to check whether generated or updated UI has drifted from a brand baseline.

ParameterTypeDescription
baselineobjectA dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model.
baselineJobIdstringjob_id of a completed extraction to read instead of passing result inline
candidateobjectA dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model.
candidateJobIdstringjob_id of a completed extraction to read instead of passing result inline
failThresholdnumberScore above this yields a 'drift' verdict (default 10)

render_report

Render a self-contained HTML report (inline CSS, no external resources) from a dembrandt extraction, optionally including a drift diff. Takes either an inline extraction or the job_id of a completed one. Returns the HTML as text: write it to a .html file to open offline or attach as a CI artifact.

ParameterTypeDescription
driftA drift report from compute_drift, to render the diff banner
job_idstringjob_id of a completed extraction to read instead of passing result inline
resultobjectA dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model.

get_findings

Lint a dembrandt extraction for design-system quality issues: WCAG contrast failures, inconsistency (near-duplicate colors, off-scale spacing values, radius sprawl), and duplication. Returns findings with severity (error/warn), category, and a human-readable message, plus summary counts. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Complements compute_drift: drift asks 'did it change', findings asks 'is it good'.

ParameterTypeDescription
job_idstringjob_id of a completed extraction to read instead of passing result inline
resultobjectA dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model.

export_dtcg

Convert a dembrandt extraction to W3C Design Tokens (DTCG) format: color, typography, spacing, radius, border, and shadow tokens with $type/$value structure and dembrandt provenance under $extensions. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Use it to hand tokens to Style Dictionary, Figma token plugins, or any DTCG-compatible pipeline.

ParameterTypeDescription
job_idstringjob_id of a completed extraction to read instead of passing result inline
resultobjectA dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model.

generate_design_md

Render a DESIGN.md brand guide (markdown) from a dembrandt extraction: colors, typography, spacing, surfaces, and components as a human-readable design reference. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Write the output to DESIGN.md in a project so agents and developers build UI against the extracted brand.

ParameterTypeDescription
job_idstringjob_id of a completed extraction to read instead of passing result inline
resultobjectA dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model.

export_tailwind

Render a Tailwind v4 @theme CSS block from a dembrandt extraction: colors, typography, spacing, radii and shadows as custom properties, observed values only, with nothing invented. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Write the output to a project's CSS entry point so Tailwind utilities resolve to the measured brand.

ParameterTypeDescription
job_idstringjob_id of a completed extraction to read instead of passing result inline
resultobjectA dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model.

export_shadcn

Render a shadcn/ui theme from a dembrandt extraction: the :root block and the @theme inline mapping Tailwind v4 needs. A slot is written only where the page supplied a value, and the rest are named in the file header and left at shadcn's own defaults, so no slot is filled with an invented value that reads as measured. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one.

ParameterTypeDescription
job_idstringjob_id of a completed extraction to read instead of passing result inline
resultobjectA dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model.

validate_dtcg

Validate a W3C Design Tokens (DTCG) document against the 2025.10 spec: token types, colour objects and their component ranges, dimensions, references, and property-level $ref pointers. Returns valid plus the list of errors with the path each one sits at. Pure and synchronous, no browser. Use it after writing or editing a token file, including one this server produced, so a hand edit cannot quietly break the document.

ParameterTypeDescription
tokens *objectThe DTCG token document to validate, as an object

check_contrast

Grade colour pairs against WCAG 2.1 contrast, at the threshold the text size earns: 18pt, or 14pt bold, is large scale and needs 3:1 where body text needs 4.5:1. Takes pairs you name, so it grades colours you are about to ship rather than only colours already on a page. Returns the ratio, the required ratio, and the AA and AAA verdicts per pair. Pure and synchronous, no browser. For pairs already rendered on a site, extract with wcag instead.

ParameterTypeDescription
pairs *arrayThe colour pairs to grade

check_robots

Ask whether robots.txt allows extracting a URL, before spending a browser run on it. Returns the verdict, the rule that decided it, and the robots.txt status. A 404 or 410 means no robots.txt and everything is allowed; any other unreadable response is treated as a refusal. Cheap and synchronous: one HTTP request, no browser.

ParameterTypeDescription
url *stringThe URL you intend to extract

get_job_status

Wait for an async extraction job and report its status (queued/running/completed/failed/cancelled). Set wait_seconds to block until the job finishes instead of polling. The result is left out by default, since a full extraction runs to hundreds of kilobytes: hand the job_id to generate_design_md, export_dtcg, get_findings or the other tools, or set include_result for the raw extraction.

ParameterTypeDescription
job_id *stringThe job_id returned by an extraction tool
include_resultbooleanInclude the raw extraction. Large: prefer passing job_id to another tool
wait_secondsintegerBlock up to this many seconds for the job to finish; returns as soon as it does

list_jobs

List all extraction jobs from this session with their status (queued/running/completed/failed/cancelled), URL, and timestamps. Completed jobs are kept for one hour.

cancel_job

Cancel a queued extraction job. Has no effect on jobs that are already running.

ParameterTypeDescription
job_id *stringThe job_id to cancel