Skip to main content
Glama

get_locators

Generate ranked Playwright locators with reliability scores for specific webpage elements to support test automation.

Instructions

Get all possible Playwright locators for a specific element on a webpage. Returns ranked locators with reliability scores. Use this when user asks for locators for a specific element.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL of the webpage to analyze
elementDescriptionYesDescription of the element (e.g., 'login button', 'username input', 'submit form', 'email field')

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