Skip to main content
Glama

browser_get_interactive

Identify interactive page elements like links, buttons, and inputs with CSS selectors and state information to enable reliable browser automation and testing.

Instructions

List all interactive elements (links, buttons, inputs, ARIA controls) on the current page with CSS selectors, visible text or value for inputs, and viewport status — use before browser_click_element to discover stable selectors, and prefer this over screenshot when verifying button/toggle state after submission (no image tokens, structured output). scope limits to a CSS subsection (e.g. '.sidebar'). Returns state (checked/pressed/selected/expanded) for ARIA custom controls. Caveats: Selectors are CDP-generated snapshots — re-call after page navigates or re-renders. Input text reflects the empty-field hint text when defined (takes priority over typed value) — use browser_eval('document.querySelector(sel).value') to read actual typed content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoCSS selector to limit the search scope (e.g. '.s-main-slot', '#nav-search-form'). Omit to scan the full page.
typesNoElement types to include. Default 'all' returns links, buttons, and inputs.
inViewportOnlyNoWhen true, only return elements currently visible in the viewport.
maxResultsNoMaximum number of elements to return (default 50).
tabIdNoTab ID from browser_connect. Omit to use the first page tab.
portNoChrome/Edge CDP remote debugging port.
includeContextNoWhen true, append activeTab and readyState context to the response.
Behavior4/5

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

With no annotations provided, the description carries the full burden and does so effectively. It discloses key behavioral traits: that selectors are CDP-generated snapshots requiring re-call after page changes, input text reflects hint text over typed values, and it returns state for ARIA controls. It doesn't mention rate limits or auth needs, but covers most critical operational aspects.

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?

The description is appropriately sized and front-loaded with the core purpose in the first sentence. Every sentence adds value: usage guidance, output details, caveats, and workarounds. It could be slightly more concise by combining some clauses, but overall it's well-structured with minimal waste.

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?

Given the tool's complexity (7 parameters, no annotations, no output schema), the description provides substantial context about what the tool does, when to use it, behavioral caveats, and workarounds. It doesn't fully describe the return format structure, but covers most aspects needed for effective use. The completeness is good but not perfect for a tool with this parameter count.

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 all 7 parameters thoroughly. The description adds some context about scope ('CSS subsection') and mentions the tool's purpose which implies parameter usage, but doesn't provide additional semantic details beyond what's in the schema descriptions. Baseline 3 is appropriate when schema does the heavy lifting.

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?

The description clearly states the specific action ('List all interactive elements'), resources targeted ('links, buttons, inputs, ARIA controls'), and output details ('CSS selectors, visible text or value for inputs, and viewport status'). It distinguishes from sibling tools like browser_click_element (used after this tool) and screenshot (prefer this over screenshot for structured output).

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

Usage Guidelines5/5

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

Explicitly states when to use this tool ('use before browser_click_element to discover stable selectors, and prefer this over screenshot when verifying button/toggle state after submission') and when not to use it ('no image tokens, structured output'). It also mentions alternatives like browser_eval for reading actual typed content, providing clear contextual guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Harusame64/desktop-touch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server