Get a site's DESIGN.md
extract_design_mdUse when the user wants a site's DESIGN.md - the open design-system file (Google's format) that coding agents such as Claude Code, Cursor, Codex, Google Stitch and Claude Design read to build in a given style - or asks to make their project, agent or app 'follow', 'use' or 'match' a website's design. Returns one markdown file: YAML front matter with the color, typography, rounded, spacing and component tokens, then Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components and Do's and Don'ts. Built only from what the page declares; values the page does not give are left out, never guessed. Save designMd as DESIGN.md in the project root exactly as returned. Not for: rebuilding a section (use extract_code) or every token with usage counts (use extract_design_tokens). 20 credits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "extract_design_md"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The website URL | |
| fresh | No | Skip the 24-hour cache and re-extract the live page - use when the site just changed and a cached result would be stale. Charged normally; the fresh result replaces the cached copy. | |
| render | No | Force a real browser so the page's JavaScript runs before it is read. Slower, and adds 5 credits. Usually not needed: when the plain read comes back as a JavaScript app shell or the site refuses it (401/403/406) or timed out, the server already re-runs the page in a browser by itself at no extra cost, and usage.autoRender says so. Pass it for images, videos or Lottie that only load on scroll, with screenshot=true, or when a result is still thin after that automatic pass. If a 403 says the browser was refused too, the site cannot be extracted - do not retry. extract_code always runs in a real browser at no extra cost, so render=true is not needed there (only together with screenshot=true). On extract_design_tokens, render=true only permits the browser: the plain read still runs first, and the 5 credits are charged only if the browser was actually needed. | |
| response_format | No | How much to return. 'concise' keeps lists to 10 entries and strings short - right for a summary or a chat answer. 'detailed' returns everything the tool has (same as limit=200 + full_output=true). Omit for the default, which fits a typical chat context. The generated code is never trimmed in any mode. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| note | No | Present when only half the page could be read (the brand or the stylesheet): says which parts the file leaves out | |
| usage | No | Credit usage for the authed key (spent, remaining, monthly limit). | |
| designMd | No | The complete DESIGN.md file, never trimmed. Save it as DESIGN.md as-is. |