> ## 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_console

> Search collected console output: logs, warnings, errors, uncaught exceptions, and browser log entries with stack traces.

Search collected console output: logs, warnings, errors, uncaught exceptions, and browser log entries with stack traces. Preserved across reloads while the session runs. Actions: search (default), get (one message with full stack), inspect (an object logged by id/objectId), wait (block until a matching message), clear.

## 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="action" type="enum" required default="search">
  One of: `search`, `get`, `inspect`, `wait`, `clear`.
</ParamField>

<ParamField body="query" type="string">
  Text or regex to match against message text
</ParamField>

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

<ParamField body="level" type="enum[]">
  Items: `log`, `info`, `warning`, `error`, `debug`, `trace`, `verbose`.
</ParamField>

<ParamField body="kind" type="enum[]">
  Items: `console`, `exception`, `log`.
</ParamField>

<ParamField body="url" type="string">
  Filter by source URL substring
</ParamField>

<ParamField body="frameId" type="string">
   
</ParamField>

<ParamField body="contextId" type="integer">
   
</ParamField>

<ParamField body="since" type="string">
  ISO time or ms; only messages after this
</ParamField>

<ParamField body="until" type="string">
   
</ParamField>

<ParamField body="id" type="integer">
  Message id for get/inspect
</ParamField>

<ParamField body="objectId" type="string">
  Remote object id for inspect
</ParamField>

<ParamField body="depth" type="integer">
  Range: 0 to 4.
</ParamField>

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

<ParamField body="offset" type="integer">
  Pagination offset, default 0 Range: 0 to ….
</ParamField>

<ParamField body="limit" type="integer">
  Page size, default 50 Range: 1 to 500.
</ParamField>

## Example

```json Errors mentioning "undefined" theme={null}
{
  "tabId": 1234,
  "level": [
    "error"
  ],
  "kind": [
    "console",
    "exception"
  ],
  "query": "undefined"
}
```

```json Inspect a logged object theme={null}
{
  "tabId": 1234,
  "action": "inspect",
  "id": 12,
  "depth": 3
}
```

```json Wait for a message theme={null}
{
  "tabId": 1234,
  "action": "wait",
  "query": "hydrated",
  "timeoutMs": 10000
}
```
