> Dea 0.9.9 documentation.
> Canonical page: https://dea.dardanica.app/docs/reference/tools/extract-design/
> Documentation index: https://dea.dardanica.app/llms.txt

# extract_design

Fingerprint a page's (or a subtree's) visual design for comparison: walk the visible DOM and return, each sorted by frequency with counts, the palette (text and background colors, normalized to hex/rgb), the fonts in use, the type scale (font sizes), the weights, the line-heights, the spacing scale (non-zero margin/padding/gap values), the corner radii, and a headings summary (h1-h3 and large text, with their size, weight, and color). Compact integers, top values only. Run it on site A and site B and diff the two small objects to see where a new build drifts from the original. Pass scope to fingerprint one part of the page, top to change how many values per group, max_elements to cap the walk (default 4000; the result says if it was capped).

## Example

Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.


```json
{
  "top": 12
}
```


## Result

Returns frequently occurring colors, fonts, type sizes, spacing, radii, headings, and walked-element counts. A capped result means the entire DOM was not analyzed.

Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `scope` | string | No | CSS selector to fingerprint just that subtree (default: whole page) |
| `top` | number | No | Values to keep per group, most frequent first (default 12) |
| `max_elements` | number | No | Cap on elements walked (default 4000) |
| `tab` | string | No | Tab name or id in your workspace; does not change the visible tab. minLength: 1 |


## Full input schema

The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.


```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "scope": {
      "description": "CSS selector to fingerprint just that subtree (default: whole page)",
      "type": "string"
    },
    "top": {
      "description": "Values to keep per group, most frequent first (default 12)",
      "type": "number"
    },
    "max_elements": {
      "description": "Cap on elements walked (default 4000)",
      "type": "number"
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "additionalProperties": false
}
```


## Related documentation

[Reference conventions](https://dea.dardanica.app/docs/reference/) · [Agent operating guide](https://dea.dardanica.app/docs/agents/) · [Troubleshooting](https://dea.dardanica.app/docs/troubleshooting/)
