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

> Start or stop an inspection session on a tab.

Start or stop an inspection session on a tab. While active, console, network, exceptions, issues, scripts, and debugger events are collected across reloads. Stop removes every breakpoint, override, and emulation the session set. clear drops collected data.

## Parameters

<ParamField body="action" type="enum" required>
  One of: `start`, `stop`, `status`, `clear`.
</ParamField>

<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="bodies" type="boolean">
  Capture response bodies (default false; bodies can also be fetched on demand)
</ParamField>

<ParamField body="maxBodyBytes" type="integer">
  Per-body cap, default 1000000
</ParamField>

<ParamField body="what" type="enum">
  For clear One of: `all`, `console`, `network`, `events`, `issues`.
</ParamField>

## Example

```json theme={null}
{
  "action": "start",
  "tabId": 1234,
  "bodies": true
}
```

```json Drop collected network data only theme={null}
{
  "action": "clear",
  "tabId": 1234,
  "what": "network"
}
```

```json theme={null}
{
  "action": "stop",
  "tabId": 1234
}
```
