Parameters
integer
Target tab id from browser_tabs, which lists tabs across all windows. Defaults to the agent’s most recently opened usable tab, or the only usable tab. Otherwise select a listed tabId.
enum
default:"search"
required
One of:
search, get, body, frames, har, throttle, cache, block, unblock, mock, unmock, rules, replay, clear.string
Text or regex
boolean
enum[]
Default url Items:
url, headers, body, postData.string
string
e.g. “404”, “4xx,5xx”, “500-599”
string
string[]
Resource types: Document, XHR, Fetch, Script, Stylesheet, Image, Font, WebSocket, Other…
number
boolean
string
string
string
integer
Body chars to return, default 20000
integer
enum
One of:
none, offline, slow3g, fast3g, 4g.number
number
number
boolean
For cache: true disables the cache
string[]
URL globs for block/unblock, e.g. “analytics”
string
URL glob for mock/unmock
object
object
For replay
integer
Pagination offset, default 0 Range: 0 to ….
integer
Page size, default 50 Range: 1 to 500.
Example
Slow API calls
Response body
Mock an endpoint
Throttle to slow 3G
Export HAR
