You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Description:** Emulates CPU throttling by slowing down the selected page's execution.
194
+
**Description:** Emulates various features on the selected page.
196
195
197
196
**Parameters:**
198
197
199
-
-**throttlingRate** (number) **(required)**: The CPU throttling rate representing the slowdown factor 1-20x. Set the rate to 1 to disable throttling
200
-
201
-
---
202
-
203
-
### `emulate_network`
204
-
205
-
**Description:** Emulates network conditions such as throttling or offline mode on the selected page.
206
-
207
-
**Parameters:**
208
-
209
-
-**throttlingOption** (enum: "No emulation", "Offline", "Slow 3G", "Fast 3G", "Slow 4G", "Fast 4G") **(required)**: The network throttling option to emulate. Available throttling options are: No emulation, Offline, Slow 3G, Fast 3G, Slow 4G, Fast 4G. Set to "No emulation" to disable. Set to "Offline" to simulate offline network conditions.
198
+
-**cpuThrottlingRate** (number) _(optional)_: Represents the CPU slowdown factor. Set the rate to 1 to disable throttling. If omitted, throttling remains unchanged.
199
+
-**networkConditions** (enum: "No emulation", "Offline", "Slow 3G", "Fast 3G", "Slow 4G", "Fast 4G") _(optional)_: Throttle network. Set to "No emulation" to disable. If omitted, conditions remain unchanged.
description: `Emulates network conditions such as throttling or offline mode on the selected page.`,
18
+
exportconstemulate=defineTool({
19
+
name: 'emulate',
20
+
description: `Emulates various features on the selected page.`,
21
21
annotations: {
22
22
category: ToolCategory.EMULATION,
23
23
readOnlyHint: false,
24
24
},
25
25
schema: {
26
-
throttlingOption: zod
26
+
networkConditions: zod
27
27
.enum(throttlingOptions)
28
+
.optional()
28
29
.describe(
29
-
`The network throttling option to emulate. Available throttling options are: ${throttlingOptions.join(', ')}. Set to "No emulation" to disable. Set to "Offline" to simulate offline network conditions.`,
30
+
`Throttle network. Set to "No emulation" to disable. If omitted, conditions remain unchanged.`,
0 commit comments