Skip to main content
Glama

inspect_page

Analyze web pages to generate structured maps of interactive elements, headings, forms, links, and images with unique CSS selectors for reliable automation workflows.

Instructions

Inspect a web page and get a structured map of all interactive elements, headings, forms, links, and images — each with a unique CSS selector. Use this BEFORE run_sequence or record_video to discover what elements exist on the page and get reliable selectors. Returns text (not an image), so it is fast and cheap. Costs 1 API request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoURL to inspect (required if no html)
htmlNoRaw HTML to inspect (required if no url)
widthNoViewport width in pixels (default: 1280)
heightNoViewport height in pixels (default: 720)
viewportDeviceNoDevice preset for viewport emulation (e.g. "iphone_14_pro"). Use list_devices to see all presets.
viewportMobileNoEnable mobile meta viewport emulation
viewportHasTouchNoEnable touch event emulation
viewportLandscapeNoLandscape orientation
deviceScaleFactorNoDevice pixel ratio (default: 1)
waitUntilNoWhen to consider navigation finished (default: networkidle2)
waitForSelectorNoWait for this CSS selector to appear before inspecting
navigationTimeoutNoNavigation timeout in ms (default: 25000)
darkModeNoEmulate dark color scheme (default: false)
reducedMotionNoEmulate prefers-reduced-motion
mediaTypeNoEmulate CSS media type
timeZoneNoOverride browser timezone
geolocationNoEmulate geolocation
userAgentNoOverride the browser User-Agent string
cookiesNoCookies to set — array of "name=value" strings or { name, value, domain? } objects
headersNoExtra HTTP headers to send with the request
authorizationNoAuthorization header value (e.g. "Bearer <token>")
bypassCSPNoBypass Content-Security-Policy on the page
hideSelectorsNoArray of CSS selectors to hide before inspecting
injectCssNoCustom CSS to inject before inspecting
injectJsNoCustom JavaScript to execute before inspecting
blockBannersNoHide cookie consent banners (default: false)
blockAdsNoBlock advertisements on the page
blockChatsNoBlock live chat widgets
blockTrackersNoBlock tracking scripts
blockRequestsNoURL patterns to block
blockResourcesNoResource types to block

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/Custodia-Admin/pagebolt-mcp'

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