get_computed_style
Retrieve computed CSS styles for a web element using its unique ID from a page snapshot, returning default or specified properties.
Instructions
Get computed CSS styles for an element by its UID from a snapshot. Returns commonly useful properties by default, or specify exact 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": {
"uid": "<uid>"
},
"name": "get_computed_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The uid of an element on the page from the page content snapshot. | |
| properties | No | Specific CSS properties to return (e.g. ["color", "font-size", "display"]). When omitted, returns a curated set of commonly useful properties. |