get_element_by_selector
Extract HTML and CSS styles from any webpage element using a CSS selector, with optional inclusion of child elements for comprehensive code analysis.
Instructions
通过CSS选择器获取元素的HTML和样式信息
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": {
"selector": "<selector>"
},
"name": "get_element_by_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS选择器 | |
| includeChildren | No | 是否包含子元素(默认:false) |