getElementHTML
Retrieve the outerHTML structure of a web element using its XPath reference for efficient selector debugging in the Better Playwright MCP server.
Instructions
通过xp引用获取元素的outerHTML结构,用于调试选择器
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": {
"pageId": "<pageId>",
"ref": "<ref>"
},
"name": "getElementHTML"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | 页面ID | |
| ref | Yes | 元素的xp引用值 |