virtual_clock
Pause or advance virtual time in Electron debugging, including granting a time budget when advancing, to control timers and async execution during tests.
Instructions
Emulation.setVirtualTimePolicy — pause / advance virtual time (use budget when advancing)
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": {
"policy": "<policy>"
},
"name": "virtual_clock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | No | Virtual ms to grant when advancing | |
| policy | Yes | ||
| targetId | No | ||
| processId | No | Process ID. If omitted, uses the single running app. |