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

> Developer mode only: run any Chrome DevTools Protocol command on a tab (or on the browser target with target:&quot;browser&quot;).

Developer mode only: run any Chrome DevTools Protocol command on a tab (or on the browser target with target:"browser"). Params must be a JSON object valid for the method.

<Note>Developer mode only. Extension mode cannot send raw protocol commands; the tool reports that the operation needs developer mode.</Note>

## 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="target" type="enum" required default="tab">
  One of: `tab`, `browser`.
</ParamField>

<ParamField body="method" type="string" required>
   
</ParamField>

<ParamField body="params" type="object">
   
</ParamField>

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

<ParamField body="context" type="string">
  Developer browser context for target:browser (default: the only running one)
</ParamField>

## Example

```json theme={null}
{
  "tabId": 5001,
  "method": "Page.getNavigationHistory"
}
```

```json Browser target theme={null}
{
  "target": "browser",
  "method": "Browser.getVersion",
  "context": "default"
}
```
