playwright_get_attribute
Retrieves an element's attribute value using a CSS selector and attribute name, supporting web scraping, testing, and automation tasks.
Instructions
Get an attribute value from an element
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>",
"attribute": "<attribute>"
},
"name": "playwright_get_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of element | |
| attribute | Yes | Attribute name |