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结构,用于调试选择器
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageId | Yes | 页面ID | |
ref | Yes | 元素的xp引用值 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"pageId": {
"description": "页面ID",
"type": "string"
},
"ref": {
"description": "元素的xp引用值",
"type": "string"
}
},
"required": [
"pageId",
"ref"
],
"type": "object"
}