Dea DardanicaDocumentation
Input and formsRead Markdown

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#

click — table 1
ParameterTypeRequiredDescription
selectorstringNoSee usage and full schema below.
textstringNominLength: 1
withinstring or objectNoSee usage and full schema below.
expect_downloadbooleanNoSee usage and full schema below.
dirstringNoSee usage and full schema below.
readbooleanNoSee usage and full schema below.
framestringNoAct 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
tabstringNoTab 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
}

Reference conventions · Agent operating guide · Troubleshooting