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

# click

Click a target by selector, ref, or its visible text. selector may be a CSS selector OR a ref from read_page (the [n], passed as "12" or "@12") — a ref needs no ref_selector call first. Scrolls into view, sends a real mouse click, and returns the page state after (url, title, and any errors/navigations the click triggered), so you usually don't need a follow-up read.

## 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": "@12"
}
```


## Usage notes

Use a current reference, observed selector, or observed text target. Inspect before retrying a timed-out submission because it may already have executed.

## Result

Returns the page outcome after trusted input, including state and relevant errors. An expected download can return saved-file information. Completion can be uncertain even if input was delivered.

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 | No | See usage and full schema below. |
| `text` | string | No | minLength: 1 |
| `within` | string or object | No | See usage and full schema below. |
| `expect_download` | boolean | No | See usage and full schema below. |
| `dir` | string | No | See usage and full schema below. |
| `read` | boolean | No | See usage and full schema below. |
| `frame` | string | No | Act inside an iframe: selector of the <iframe> element (find_elements/read_page/get_page_text list them). Nested frames chain with " >> ", e.g. "#checkout >> iframe[name=card]". minLength: 1 |
| `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"
    },
    "text": {
      "type": "string",
      "minLength": 1
    },
    "within": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "object",
          "properties": {
            "heading": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "heading"
          ],
          "additionalProperties": false
        }
      ]
    },
    "expect_download": {
      "type": "boolean"
    },
    "dir": {
      "type": "string"
    },
    "read": {
      "type": "boolean"
    },
    "frame": {
      "description": "Act inside an iframe: selector of the <iframe> element (find_elements/read_page/get_page_text list them). Nested frames chain with \" >> \", e.g. \"#checkout >> iframe[name=card]\".",
      "type": "string",
      "minLength": 1
    },
    "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/)
