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.
210
200
211
201
---
212
202
@@ -256,12 +246,11 @@
256
246
257
247
### `get_network_request`
258
248
259
-
**Description:** Gets a network request by reqid. You can get all requests by calling [`list_network_requests`](#list_network_requests).
260
-
Get the request currently selected in the DevTools UI by ommitting reqid
249
+
**Description:** Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel.
261
250
262
251
**Parameters:**
263
252
264
-
-**reqid** (number) _(optional)_: The reqid of the network request. If omitted, looks up the current request selected in DevTools UI.
253
+
-**reqid** (number) _(optional)_: The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel.
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