Skip to main content
Glama

interact

Simulate user actions like click, type, scroll, hover, select, and key press on a page, then return a screenshot to test UI flows and states.

Instructions

Interact with the page: click, type, scroll, hover, select, press_key. Returns a screenshot after the action. Use to test user flows and UI states.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "interact"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPage URL. Auto-detected if omitted.
textNoText to type (for 'type') or key to press (for 'press_key').
waitNoMs to wait after action before screenshot. Default: 500. Increase for slow animations.
valueNoValue to select (for 'select' action in dropdowns).
actionYesAction to perform.
amountNoScroll amount in pixels. Default: 500.
selectorNoCSS selector of target element. Required for click, type, hover, select.
viewportNoViewport size. Default: desktop.
directionNoScroll direction. Default: down.
screenshotNoReturn screenshot after action. Default: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only discloses that a screenshot is returned and that the action is applied to a page. It never states whether the browser session persists between calls, whether `url` causes navigation or attaches to an existing page, or that clicks/types can irreversibly submit forms or trigger side effects.

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?

Three short sentences, front-loaded with the action vocabulary, and no filler. Only the trailing 'use to test user flows' clause is slightly redundant with the action list.

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

Completeness4/5

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

For a 10-parameter stateful browser tool with no annotations, the critical mechanics — how the action is applied and that a screenshot is returned — are stated, and the schema supplies the rest. The missing piece is the session/navigation model, which matters for chaining calls.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including defaults, enums, and conditional requirements is already documented in structured form. The description only loosely maps text/value to the `type` and `select` actions, adding little beyond the schema.

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

Purpose4/5

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

Names the resource (the page) and enumerates the concrete operations (click, type, scroll, hover, select, press_key), so an agent knows exactly what capability this exposes. It stops short of drawing a boundary against the sibling `flow` tool, which also relates to multi-step interaction.

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

Usage Guidelines3/5

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

"Use to test user flows and UI states" gives an implied context, but there is no when-not guidance, no mention of when to prefer `screenshot`, `flow`, or `sweep`, and the stated use case ('test user flows') overlaps a sibling by name.

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