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

# browser_webmcp

> WebMCP: pages can expose typed tools to agents via navigator.modelContext.

WebMCP: pages can expose typed tools to agents via navigator.modelContext. list reports what the page exposes (or that it exposes nothing); invoke calls one by name.

## 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="list">
  One of: `list`, `invoke`.
</ParamField>

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

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

## Example

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

```json theme={null}
{
  "tabId": 1234,
  "action": "invoke",
  "name": "searchProducts",
  "args": {
    "query": "lamp"
  }
}
```
