Skip to content

Interface: TabRecord

Defined in: aiui-lowering-pipeline/src/types.ts:145

The canonical tab record — ONE shape for "which browser tab" everywhere a tab is described: the context preamble, navigation/tab-switch boundaries, and selection metadata all render it as the same <tab …/> element (see renderTabRecord, render.ts), so the agent learns one format (taught in the MCP server's instructions) and recognizes it everywhere.

Every field beyond url is optional — producers fill what they know, the renderer prints what it gets. The ids live in different namespaces and NONE of them is the Chrome DevTools MCP's own pageId: they are correlation hints; the reliable matching keys are url and title (via list_pages).

Properties

aiui?

optional aiui?: boolean

Defined in: aiui-lowering-pipeline/src/types.ts:151

True when the page carries aiui instrumentation (an aiui app under development).


chromeTabId?

optional chromeTabId?: number

Defined in: aiui-lowering-pipeline/src/types.ts:155

chrome.tabs.Tab.id — extension-layer tab id.


driverTab?

optional driverTab?: number

Defined in: aiui-lowering-pipeline/src/types.ts:163

The plain-page host's CDP driver handle for this tab.


sourceRoot?

optional sourceRoot?: string

Defined in: aiui-lowering-pipeline/src/types.ts:153

The dev server's source root, when the page is an instrumented aiui app.


tabIndex?

optional tabIndex?: number

Defined in: aiui-lowering-pipeline/src/types.ts:159

The tab's index in its window (drifts as tabs move; a hint only).


targetId?

optional targetId?: string

Defined in: aiui-lowering-pipeline/src/types.ts:161

CDP Target.TargetID.


title?

optional title?: string

Defined in: aiui-lowering-pipeline/src/types.ts:149

The page's document.title.


url

url: string

Defined in: aiui-lowering-pipeline/src/types.ts:147

The page's full location.href — the primary matching key.


windowId?

optional windowId?: number

Defined in: aiui-lowering-pipeline/src/types.ts:157

chrome.tabs.Tab.windowId.