Skip to main content
Glama

browser_scroll_to_element

Scrolls the browser viewport to a specified element using a locator strategy, bringing it into view for interaction or inspection.

Instructions

Scroll to an element

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": {
      "by": "<by>",
      "value": "<value>"
    },
    "name": "browser_scroll_to_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYesLocator strategy to find element
valueYesValue for the locator strategy
timeoutNoMaximum time to wait for element in milliseconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changedv1.0.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observed

TDQS

C2.1/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it discloses nothing: not whether the scroll is instant or smooth, whether the element is centered or merely brought into view, what happens on timeout or if the element is absent, or whether an error is thrown. For a browser automation action with a configurable wait, this is a serious gap.

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

Conciseness3/5

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

Four words are maximally front-loaded and contain zero filler, but the brevity reflects under-specification rather than disciplined conciseness. There is nothing to trim because nothing beyond the tool name was written.

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

Completeness2/5

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

With no annotations, no output schema, and three parameters including a timeout, the description should explain at least the success/failure signalling and the waiting behavior. None of that is present, leaving an agent unable to predict what a call returns or how failures surface.

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%, and the enum on 'by' with per-field descriptions already documents locator strategy and timeout semantics, so the baseline is 3. The description contributes no additional meaning about how 'value' is interpreted per strategy or what the timeout default is.

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

Purpose2/5

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

"Scroll to an element" restates the tool name (browser_scroll_to_element) almost verbatim, so it adds essentially no information beyond the identifier. It is not misleading and it does imply element-targeting rather than pixel/coordinate scrolling, but there is no specific verb-plus-resource elaboration that would separate it from siblings such as browser_scroll_by_pixels.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus the many sibling scroll tools (top, bottom, coordinates, by pixels), nor when to prefer browser_wait_for_element or browser_find_element first. An agent must infer the selection criteria entirely from the names.

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