time.set_fixed_date
Freeze Date.now() and new Date() to one fixed instant so you can test time-dependent browser code while timers, animations, and polling keep running normally.
Instructions
Make Date.now() and new Date() always return one instant, while timers, animations and polling keep running normally.
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": {
"time": "<time>"
},
"name": "time.set_fixed_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | 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. |