Skip to main content
Glama
helmif

semantic-dom-mcp

by helmif

session_act

Run declared fill, click, press, select, goto, or wait actions in an open session's main frame to drive flows, then capture resulting URL, title, and observed navigations, requests, or errors.

Instructions

Perform a short DECLARED action list (fill/click/press/select/goto/wait, max 20) in an open session's main frame. Returns the page's resulting URL/title and observed: main-frame navigations, xhr/fetch requests (method, path, status — bodies and query strings never captured), console errors, dialogs (auto-dismissed) and popups (recorded, closed). These are the facts for waitForURL/waitForResponse. Derive action locators from a prior extraction (paste its playwright expression). Pass then_extract to get the diff (or a scoped extraction / outline) in the same call. If the actions leave the allowlisted hosts the session is closed and nothing further is extracted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionsYesDeclared actions (fill/click/press/select/goto/wait) executed in order in the MAIN frame after navigation.
settle_msNoWait after the last action before snapshotting (for toasts/animations).
session_idYesFrom session_open.
then_extractNoAlso snapshot in this call — one round trip per step. Default mode 'diff' against the previous snapshot; supports scope/roles/visible_only/max_output_chars/include_tables.
wait_selector_afterNoSelector to await (visible) AFTER the actions, before snapshotting — deterministic wait for late-rendering toasts/modals instead of guessing settle_ms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover readOnly/destructive/idempotent/openWorld flags. The description goes well beyond them: it enumerates what `observed` returns, states that request bodies and query strings are never captured, that dialogs are auto-dismissed and popups recorded then closed, and that leaving allowlisted hosts closes the session and halts extraction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action, then the return contract, then the locator-derivation and side-effect warnings. Dense but every sentence carries operational information; the single long paragraph is slightly harder to scan than a bulleted form would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, nested-schema mutation tool with no output schema, the description supplies the return shape (URL/title plus `observed` categories), the locator provenance rule, the allowlist failure mode, and the extraction-folding option. Nothing essential for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description still adds usable semantics by explaining that action locators should be sourced from a prior extraction's `playwright` expression and that `then_extract` defaults to a diff in the same call. It adds routing/derivation guidance rather than restating field docs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (perform a declared action list of fill/click/press/select/goto/wait) on a specific resource (an open session's main frame) with scope limits (max 20). An agent can distinguish this from extraction/verification siblings without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operating context: derive locators from a prior extraction and paste its `playwright` expression, pass `then_extract` to fold the snapshot into the same call, and the allowlist consequence. It does not explicitly name alternative siblings (e.g. when to prefer session_extract or extract_semantic_dom_after), so it falls just short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.