Skip to content

Interface: SurfaceTargeting

Defined in: aiui-intent-client/src/transport.ts:278

Which tab the user is looking at — targeting for ring/keys/pencil.

Methods

activeTab()

activeTab(): number | undefined

Defined in: aiui-intent-client/src/transport.ts:279

Returns

number | undefined


onActiveTabChange()

onActiveTabChange(handler): () => void

Defined in: aiui-intent-client/src/transport.ts:280

Parameters

handler

(tab) => void

Returns

() => void


tabInfo()?

optional tabInfo(tab): Promise<object & Omit<TabRecord, "url" | "title"> | undefined>

Defined in: aiui-intent-client/src/transport.ts:288

Identity of one tab (tab-boundary events name where the user left/went). Beyond url/title, a host contributes whatever of the canonical tab-record fields live in ITS namespace — the extension its chrome ids, the CDP driver its target id / driver handle — so the boundary's <tab> record carries everything known without the host-agnostic caller guessing.

Parameters

tab

number

Returns

Promise<object & Omit<TabRecord, "url" | "title"> | undefined>