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
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": {
"url": "<url>",
"selector": "<selector>"
},
"name": "inspect_element"
}
}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 |