Get MCP tab context
tabs_context_mcpRetrieve the tab IDs in an MCP-owned tab group first, optionally creating a background window or existing-window group when none exists so other tools can control those tabs.
Instructions
Get the tab IDs in the MCP-owned tab group. CALL THIS FIRST in a session. Pass createIfEmpty=true to create a background window + tab group without taking focus if none exists yet. An explicit createWindowId instead creates a new owned tab/group in that existing normal window; it never adopts user tabs or moves an existing group. Tools address tabs by tabId; switching is unnecessary for ordinary background work. Use tab_switch with bringToFront=true only when showing the window is needed. Only tabs in this group can be controlled by the other tools.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tabs_context_mcp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| incognito | No | Create the new group in a separate background incognito window, without the user's normal sign-ins. Requires createIfEmpty and the user's "Allow in Incognito" setting for Tabai (otherwise INCOGNITO_UNAVAILABLE); cannot be combined with createWindowId. | |
| createIfEmpty | No | Create a background window + MCP tab group if none exists | |
| createWindowId | No | Create the new owned group in this existing Chrome window. Requires createIfEmpty; never adopts existing tabs or moves a live group. |