Read page object selector definitions
read_page_object_selectorsExtract selector definitions from a page object file, mapping each getter to its exact CSS/attribute selector for diagnosing broken selectors. Returns raw content fallback if structured extraction fails.
Instructions
Extract all selector definitions from a page object file. Returns a getter → elementName → selector mapping so the model sees the exact CSS/attribute selectors in use — essential for diagnosing broken selectors without guessing. If structured extraction fails, returns the raw file content as fallback.
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": {
"pageObjectPath": "<pageObjectPath>"
},
"name": "read_page_object_selectors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageObjectPath | Yes | Absolute path to the page object file |