Skip to main content
Glama

action

Performs browser interactions such as navigating, clicking, filling forms, selecting options, pressing keys, and scrolling, with Playwright auto-waits blocking until each step completes.

Instructions

Perform an action on the page. Actions block until complete (Playwright auto-waits for elements).

Available actions:

  • navigate: Go to a URL (requires: url)

  • back: Navigate back in history

  • forward: Navigate forward in history

  • click: Click an element (requires: selector)

  • fill: Fill a text input (requires: selector, value)

  • select: Select an option in a dropdown (requires: selector, value)

  • check: Check a checkbox (requires: selector)

  • uncheck: Uncheck a checkbox (requires: selector)

  • press: Press a key (requires: selector or value for key name)

  • scroll: Scroll the page or element (optional: selector, value for direction)

  • highlight: Scroll to element and flash it with a colored border (requires: selector)

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": {
      "session": "<session>",
      "type": "<type>"
    },
    "name": "action"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL for navigate action
typeYesThe action to perform
valueNoValue for fill/select actions, key name for press, direction (up/down) for scroll
sessionYesThe session name
selectorNoCSS selector for the target element (required for most actions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does add genuinely valuable behavior: actions block until complete and Playwright auto-waits for elements, which tells the agent not to poll manually. It omits what happens on failure — timeout behavior, selector-not-found errors, or whether a failed action leaves page state partially changed.

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 blocking/auto-wait caveat, then a scannable bullet list where each line maps one action to its required inputs. No filler sentences; the enumeration is long but every entry is load-bearing for a dispatcher tool.

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

Completeness3/5

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

The tool is a multi-mode dispatcher with five parameters and no output schema, so the description should say what an action returns (a result payload? the new URL? element state?). It also never states the session lifecycle requirement or failure semantics, leaving meaningful gaps for a tool this central.

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 the baseline is 3, but the description adds cross-parameter conditionality the schema cannot express — e.g., 'press' takes selector *or* value for the key name, and 'scroll' has both optional. That mutual-exclusivity detail is real value beyond the flat 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?

The description names a specific verb ('perform an action on the page') and then enumerates the exact action vocabulary (navigate, click, fill, scroll, etc.), so an agent knows precisely what capability this tool exposes. It does not explicitly contrast itself with siblings such as elements or screenshot, which keeps it from a 5.

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?

The per-action 'requires' annotations imply when each mode applies (e.g., fill needs selector+value, navigate needs url), which is useful routing within the tool. However there is no guidance on when to use this tool versus alternatives like elements (to discover selectors) or screenshot, and no stated prerequisites such as an open session.

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