inspect_element
Extract DOM element attributes, text content, and computed styles from web pages using CSS selectors for web scraping and application testing.
Instructions
Inspect a DOM element by selector and return its attributes, text, and computed styles
Input Schema
Name | Required | Description | Default |
---|---|---|---|
browser | No | chromium | |
properties | No | Optional list of CSS properties | |
selector | Yes | CSS selector of element | |
url | Yes | Page URL to inspect |
Input Schema (JSON Schema)
{
"properties": {
"browser": {
"default": "chromium",
"enum": [
"chromium",
"firefox",
"webkit"
],
"type": "string"
},
"properties": {
"description": "Optional list of CSS properties",
"items": {
"type": "string"
},
"type": "array"
},
"selector": {
"description": "CSS selector of element",
"type": "string"
},
"url": {
"description": "Page URL to inspect",
"type": "string"
}
},
"required": [
"url",
"selector"
],
"type": "object"
}