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

# element_screenshot

Capture just one element (a post, a card, a message) instead of the whole viewport. Scrolls it into view and crops to its bounding box. Pass name to also save the PNG to disk.

## 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": "main",
  "name": "main-review"
}
```


## Usage notes

Use main only if that element actually exists on your page; otherwise substitute an observed selector.

## Result

Returns a cropped PNG plus the element box and compact computed-style information. With a name, also saves an image and reports the path.

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 | See usage and full schema below. |
| `name` | string | No | Save to disk as <name>.png and return the path |
| `dir` | string | No | Folder to save into (default ~/Documents/Dea/Screenshots/<date>/) |
| `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"
    },
    "name": {
      "description": "Save to disk as <name>.png and return the path",
      "type": "string"
    },
    "dir": {
      "description": "Folder to save into (default ~/Documents/Dea/Screenshots/<date>/)",
      "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/)
