> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browspark.krishm.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# devtools_events

> Read or wait for events collected in the inspection session: console messages, exceptions, request start/finish/fail, breakpoint pauses, navigations, issues, se

Read or wait for events collected in the inspection session: console messages, exceptions, request start/finish/fail, breakpoint pauses, navigations, issues, service worker and animation events, recording completion. Use afterId to page forward; wait:true blocks until a matching event arrives.

## Parameters

<ParamField body="tabId" type="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.
</ParamField>

<ParamField body="method" type="string">
  Filter by event method substring or regex, e.g. "Debugger.paused", "loadingFailed", "console"
</ParamField>

<ParamField body="regex" type="boolean">
   
</ParamField>

<ParamField body="text" type="string">
  Filter by summary text
</ParamField>

<ParamField body="afterId" type="integer">
  Only events with id greater than this
</ParamField>

<ParamField body="wait" type="boolean">
   
</ParamField>

<ParamField body="timeoutMs" type="integer">
  Range: … to 120000.
</ParamField>

<ParamField body="limit" type="integer">
  Range: … to 500.
</ParamField>

<ParamField body="includeParams" type="boolean">
   
</ParamField>

## Example

```json Page through collected events theme={null}
{
  "tabId": 1234,
  "afterId": 0,
  "limit": 100
}
```

```json Block until a request to /api fails theme={null}
{
  "tabId": 1234,
  "method": "Network.loadingFailed",
  "text": "/api",
  "wait": true,
  "timeoutMs": 15000
}
```
