Skip to main content
Glama

Run page actions

run_actions
Destructive

Execute ordered browser page actions—click, fill, press, select, check, uncheck, or wait—in one call, receive per-step change reports, and stop at the first failure.

Instructions

Run a list of page actions (click, fill, press, select, check, uncheck, wait) in order in one call, on a page of a task space you control. Stops at the first failure; nothing is reordered or retried. Each step reports what changed (URL, dialog, new tab, list counts, messages); after a click or key the next step waits for the page to be quiet (≤300 ms). Stops if the user has control. For anything else use run_script.

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": {
      "space_id": "<space_id>",
      "actions": "<actions>"
    },
    "name": "run_actions"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage label such as p1 (default: the active page).
settleNoWait for the page to be quiet after each click / key press before the next step (default true, at most 300 ms per step).
actionsYesSteps in order, e.g. [{"action":"fill","target":"#q","value":"LMS"},{"action":"click","target":"text=Search"},{"action":"wait","target":"#res tr"}].
space_idYesTask space id (from list_spaces or an earlier script).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds substantial operational detail on top: execution is ordered, halts at first failure, never retried or reordered, each step reports changes (URL, dialog, new tab, counts, messages), and the settle wait is bounded at 300 ms. It also discloses the abort condition when the user has control, which no annotation conveys.

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

Conciseness5/5

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

Dense and front-loaded: the core verb-and-scope clause comes first, followed by failure semantics, then reporting behaviour, then the sibling hand-off. Every sentence carries distinct information, and no wording is redundant filler.

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?

No output schema exists, yet the description explains what each step returns (URL, dialog, new tab, list counts, messages), covering the return-value gap. Combined with the halt-on-failure and user-control abort rules, an agent has everything needed to invoke a destructive, multi-step UI tool safely.

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 the schema already documents page, settle, actions, and the nested step fields including the per-action enum. The description reinforces ordering semantics ("in order in one call") and the quiet-wait behaviour, but largely restates what the schema says rather than adding new parameter-level meaning. Baseline 3 is appropriate.

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 and resource ("Run a list of page actions"), enumerates the exact action verbs supported, and scopes it to "a page of a task space you control." It explicitly names the sibling run_script as the fallback for everything else, so an agent can distinguish the two without opening either 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?

Provides a clear routing rule: this tool for the listed UI action verbs, run_script for anything else. It also signals the guard that execution halts if the user takes control, implying the human-in-the-loop boundary. It stops short of explicitly comparing against snapshot/screenshot or naming wait_for_control as the alternative for control-handoff waits.

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