chrome_get_property
Retrieve an element's property value safely via CDP without script injection. Use as a secure alternative to execute_script for reading properties.
Instructions
Get a property value from an element without script injection. Uses CDP APIs for safe property access. Property name must be alphanumeric + underscore/hyphen only. Use this instead of chrome_execute_script for reading element properties.
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>",
"property": "<property>"
},
"name": "chrome_get_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property | Yes | Property name to retrieve (alphanumeric + underscore/hyphen only) | |
| selector | Yes | CSS selector for the element |