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

# get_styles

Read one element's computed design properties as a curated, grouped bundle: box (position and size, display, position, box-sizing, z-index), typography (font family, size, weight, line-height, letter-spacing, alignment, transform, style, color), background (color, image, and the effective background behind a transparent element), spacing (margins, paddings, gap), border (per-side width/style/color collapsed when uniform, plus radius), effects (box-shadow, opacity, filter, backdrop-filter, transform), and layout (flex/grid direction, alignment, gap, grid templates). Browser-default and empty values are dropped to keep it small; pixel values are rounded. selector is a CSS selector or a read_page ref ("12"/"@12"). Pass props to also return named computed properties verbatim. Pair it across two builds to see exactly how one element's styling differs.

## 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
{
  "selector": "h1"
}
```


## Usage notes

Use a selector or current reference observed on the page.

## Result

Returns grouped computed properties for the element, including box, typography, background, spacing, border, effects, and layout. props requests additional properties.

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 |
| --- | --- | --- | --- |
| `selector` | string | Yes | CSS selector, or a read_page ref like "12" / "@12" |
| `props` | array of string | No | Extra computed CSS property names to return verbatim, e.g. ["cursor", "outline"] |
| `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": {
    "selector": {
      "type": "string",
      "description": "CSS selector, or a read_page ref like \"12\" / \"@12\""
    },
    "props": {
      "description": "Extra computed CSS property names to return verbatim, e.g. [\"cursor\", \"outline\"]",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "selector"
  ],
  "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/)
