browser_attribute
Get a specific attribute value (e.g., href) of a web element on a mobile device. Provide the device serial number, CSS selector, and attribute name to retrieve the data.
Instructions
Get one attribute of an element.
Args: serialno: The browser device serialno, from list_devices. selector: A CSS selector. attribute: The attribute name, e.g. href.
Returns: JSON envelope whose data carries the attribute value.
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": {
"serialno": "<serialno>",
"selector": "<selector>",
"attribute": "<attribute>"
},
"name": "browser_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| serialno | Yes | ||
| attribute | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |