Skip to main content
Glama

browser_query_elements

Extract webpage elements using CSS selectors to analyze structure, locate interactive components, and inspect form fields with tag names, text content, and HTML attributes.

Instructions

[Disabled] Query all elements matching a CSS selector and return their tag names, trimmed text content (first 200 chars), and specified HTML attributes. Useful for understanding page structure, finding interactive elements, and inspecting forms. Returns up to limit elements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdYesTab ID of the page to query
selectorYesCSS selector to query
limitNoMax elements to return — defaults to 100
attributesNoAttribute names to extract — defaults to id, class, href, src, type, name, value, placeholder

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/opentabs-dev/opentabs'

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