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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"elementDescription": "<elementDescription>"
},
"name": "get_locators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the webpage to analyze | |
| elementDescription | Yes | Description of the element (e.g., 'login button', 'username input', 'submit form', 'email field') |