Dea DardanicaDocumentation
Input and formsRead Markdown

table_batch

One-call visible table to form transfer. Run before once (e.g. Start then navigate to data), extract rendered HTML table cells, validate every record, run after_read once (e.g. navigate back), then steps per row. Final read runs once. Uses the normal input/batch checks; stops on failure. No hidden data or automatic decisions. {{field}} placeholders allowed only in type_text/paste_text text. Counts setup, extraction and row steps toward 200 maximum. Returns phase timings and final 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
{
  "source": {
    "selector": "#contacts",
    "columns": {
      "name": 1
    },
    "expected_rows": 2
  },
  "steps": [
    {
      "tool": "type_text",
      "args": {
        "label": "Name",
        "text": "{{name}}"
      }
    },
    {
      "tool": "read_page"
    }
  ]
}

Usage notes#

Illustrative fixture: an observed #contacts HTML table with exactly two data rows and the destination Name field must exist. Column indices are 1-based. A real transfer needs its observed navigation and authorized submission steps.

Result#

Reports extraction, validation, setup, and row execution results, phase timings, and any final read. Stops on failure before proceeding to dependent phases.

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#

table_batch — table 1
ParameterTypeRequiredDescription
beforearray of objectNoOne-time setup steps before rows or times, e.g. click Start. Literal arguments; no placeholders or terminal reads. Counts toward 200 actions. Entire batch validated first; setup failure always stops. maxItems: 20
sourceobjectYesSee usage and full schema below.
after_readarray of objectNoOne-time setup steps before rows or times, e.g. click Start. Literal arguments; no placeholders or terminal reads. Counts toward 200 actions. Entire batch validated first; setup failure always stops. maxItems: 20
stepsarray of objectYesSteps run in order, e.g. [{tool:'scroll',args:{pixels:800}},{tool:'sleep',args:{ms:400}}] minItems: 1; maxItems: 20
wait_forobjectNoFinal read completion condition, captured before the last click/navigation/Enter. For SPA filtering use {selector: observed results container, changed:true}; an existing selector alone is insufficient.
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": {
    "before": {
      "description": "One-time setup steps before rows or times, e.g. click Start. Literal arguments; no placeholders or terminal reads. Counts toward 200 actions. Entire batch validated first; setup failure always stops.",
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string",
            "enum": [
              "navigate",
              "click",
              "type_text",
              "paste_text",
              "press_key",
              "blur",
              "hover",
              "select_option",
              "fill_form",
              "upload_file",
              "scroll",
              "wait_for",
              "get_state",
              "sleep",
              "get_page_text",
              "inspect",
              "read_page"
            ]
          },
          "args": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "tool"
        ],
        "additionalProperties": false
      }
    },
    "source": {
      "type": "object",
      "properties": {
        "selector": {
          "type": "string",
          "minLength": 1,
          "description": "CSS selector matching exactly one rendered HTML table"
        },
        "row_selector": {
          "description": "Relative data-row selector, default tbody > tr; exclude headers",
          "type": "string",
          "minLength": 1
        },
        "columns": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
          },
          "additionalProperties": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "description": "Map field names to 1-based cell positions, e.g. {first:1,email:3}; preserves rendered strings"
        },
        "expected_rows": {
          "type": "integer",
          "minimum": 1,
          "maximum": 25,
          "description": "Required exact count; reject incomplete/extra data before filling"
        }
      },
      "required": [
        "selector",
        "columns",
        "expected_rows"
      ],
      "additionalProperties": false
    },
    "after_read": {
      "description": "One-time setup steps before rows or times, e.g. click Start. Literal arguments; no placeholders or terminal reads. Counts toward 200 actions. Entire batch validated first; setup failure always stops.",
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string",
            "enum": [
              "navigate",
              "click",
              "type_text",
              "paste_text",
              "press_key",
              "blur",
              "hover",
              "select_option",
              "fill_form",
              "upload_file",
              "scroll",
              "wait_for",
              "get_state",
              "sleep",
              "get_page_text",
              "inspect",
              "read_page"
            ]
          },
          "args": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "tool"
        ],
        "additionalProperties": false
      }
    },
    "steps": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string",
            "enum": [
              "navigate",
              "click",
              "type_text",
              "paste_text",
              "press_key",
              "blur",
              "hover",
              "select_option",
              "fill_form",
              "upload_file",
              "scroll",
              "wait_for",
              "get_state",
              "sleep",
              "get_page_text",
              "inspect",
              "read_page"
            ]
          },
          "args": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "tool"
        ],
        "additionalProperties": false
      },
      "description": "Steps run in order, e.g. [{tool:'scroll',args:{pixels:800}},{tool:'sleep',args:{ms:400}}]"
    },
    "wait_for": {
      "description": "Final read completion condition, captured before the last click/navigation/Enter. For SPA filtering use {selector: observed results container, changed:true}; an existing selector alone is insufficient.",
      "type": "object",
      "properties": {
        "selector": {
          "type": "string",
          "minLength": 1
        },
        "text": {
          "type": "string",
          "minLength": 1
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "changed": {
          "type": "boolean",
          "const": true
        },
        "timeout_ms": {
          "type": "integer",
          "minimum": 1,
          "maximum": 15000
        }
      },
      "additionalProperties": false
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "source",
    "steps"
  ],
  "additionalProperties": false
}

Reference conventions · Agent operating guide · Troubleshooting