Skip to main content
Glama

page.pointer

Send low-level pointer gestures—moves, holds, clicks, wheel scrolls, and drags—as ordered steps for cases standard click tools miss. Held button and position persist per tab between calls.

Instructions

Raw pointer script for anything the other tools do not cover: draw a shape, hover-then-press, drag with a wheel scroll in the middle, a press in one call and the release in a later one. actions run in order; each move travels the human path from wherever the pointer is. The held button and position persist per tab between calls. Example: [{action:"move",selector:"canvas"},{action:"down"},{action:"move",x:300,y:200},{action:"move",x:350,y:260},{action:"up"}].

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": {
      "actions": "<actions>"
    },
    "name": "page.pointer"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoSeed for the human randomness, to repeat a gesture exactly. Every call reports the seed it used.
html5NoDefault true: a held left button that starts a native HTML5 drag finishes with drag events.
humanNoDefault true: curved path, slow-fast-slow speed, hand jitter, short pauses. false: straight, even, no pauses.
inputNoDefault auto: touch when touch emulation is on for the tab (device.preset), else mouse.
verifyNoWatch for DOM mutations after the gesture. Default true.
actionsYesSteps. A locator or x/y on down/up/click/wheel moves there first.
jitter_pxNoHand wobble mid-path in CSS px. Default 1.5; 0 for a steady hand. Ends are always exact.
modifiersNoKeys held throughout, e.g. ["Shift"] or ["Alt"].
target_idNoTarget handle (tgt_*). Omit for the active page.
verify_msNoHow long to watch. Default 300.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With only readOnlyHint=false and openWorldHint=true supplied, the description carries the real behavioral load and does it well: actions execute in order, each move follows the human path from the current pointer position, and the held button and position persist per tab between calls — a non-obvious statefulness that would otherwise cause silent failures. The worked example makes the sequencing and cross-call persistence concrete.

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?

Front-loaded with the purpose and scope in the first clause, then the ordering and persistence rules, then a compact illustrative example. No sentence is filler; each adds a constraint an agent would otherwise have to guess.

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?

Adequate for an 11-parameter mutation tool with no output schema: ordering, persistence, human-path behavior and a full example are all present. It does not say what the verify/mutation-watch step reports back, though the annotation of openWorldHint and the lack of an output schema make that a minor omission.

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, and the description earns extra by explaining the semantics the schema cannot: the ordered action list, that a locator or x/y on down/up/click/wheel relocates the pointer first, and that state carries across calls. It gives one example rather than explaining the move/pause/wheel fields, which the schema already covers.

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?

Names a concrete resource and verb ('Raw pointer script') and frames itself as the escape hatch for gestures the dedicated click/hover/drag/press tools do not cover, with four concrete examples of such gestures. An agent can tell immediately that this is the general-purpose fallback rather than a task-specific pointer tool.

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?

States the selecting condition clearly ('anything the other tools do not cover') and enumerates the cases that justify it (draw a shape, hover-then-press, drag with an interleaved wheel scroll, split press/release across calls). It does not name the specific siblings to prefer for simple clicks or drags, so the routing is implied rather than spelled out.

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

Deploy Server

Other Tools