Skip to main content
Glama
analyze-page.d.ts1.4 kB
/** * Analyze Page Tool - Scan pages and identify interactive elements * * @author Naveen AutomationLabs * @license MIT * @date 2025 * @see https://github.com/naveenanimation20/locatorlabs-mcp */ import { BrowserManager } from "../core/browser.js"; export interface ElementInfo { tagName: string; id?: string; name?: string; className?: string; type?: string; placeholder?: string; text?: string; ariaLabel?: string; role?: string; testId?: string; href?: string; title?: string; xpath: string; selector: string; } export interface LocatorResult { type: string; locator: string; reliability: number; description: string; } export interface PageElement { element: string; type: string; locators: LocatorResult[]; recommended: string; } export interface AnalyzePageResult { url: string; totalElements: number; returnedElements: number; truncated: boolean; elements: PageElement[]; } export declare class AnalyzePageTool { private browserManager; constructor(browserManager: BrowserManager); execute(url: string, elementTypes?: string[]): Promise<AnalyzePageResult>; private getAllInteractiveElements; private generateLocators; private inferRole; private rankLocators; private describeElement; private escape; } //# sourceMappingURL=analyze-page.d.ts.map

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/naveenanimation20/locatorlabs-mcp'

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