Dea DardanicaDocumentation
Reading and inspectionRead Markdown

ref_selector

Only needed when you require a CSS string: selector tools already accept refs directly. Turn a numeric ref from the last read_page outline (the [n] markers) into a unique CSS selector for click, type_text, inspect, and the other selector tools. Errors if the ref is unknown or stale (after a navigation or a DOM change, call read_page again).

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
{
  "ref": 12
}

Usage notes#

Ordinary selector tools accept references directly; conversion is only needed when a CSS string is required. Use a real reference from read_page.

Result#

Returns a CSS selector for the current reference, or an error if it is unknown or stale.

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#

ref_selector — table 1
ParameterTypeRequiredDescription
refnumberYesThe [n] number from the last read_page outline
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": {
    "ref": {
      "type": "number",
      "description": "The [n] number from the last read_page outline"
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "ref"
  ],
  "additionalProperties": false
}

Reference conventions · Agent operating guide · Troubleshooting