environment.media_features
Override browser media features such as prefers-color-scheme or reduced-motion by setting custom emulated values, merging them with existing overrides for accurate responsive testing.
Instructions
Set arbitrary emulated media features, merged with what is already overridden.
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": {
"features": "<features>"
},
"name": "environment.media_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media | No | ||
| features | Yes | ||
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. |