Skip to content

Interface: PageToolRegistration

Defined in: packages/aiui-claude-channel/src/page-tools.ts:39

A page's declaration of the full tool set for one namespace.

Properties

active

active: boolean

Defined in: packages/aiui-claude-channel/src/page-tools.ts:63

The NAMESPACE's activity bit (the page-tools proposal, git history): false when the page parked this app (a gallery notebook off-route). Parked tools stay listed and callable — the agent sees the flag; route-following consumers (the panel's oracle) filter page-side. Deliberately NOT in the change signature: a route flip is not a "page tools changed" event.


activeTab?

optional activeTab?: true

Defined in: packages/aiui-claude-channel/src/page-tools.ts:70

Present when this registration's tab is a window's active tab (per the activation messages — see PageToolDirectory.handleClientMessage). Derived at PageToolDirectory.list time, never stored: an activation flip re-flags the next list without touching registrations.


clientId

clientId: string

Defined in: packages/aiui-claude-channel/src/page-tools.ts:41

Server-assigned id of the connection this namespace was declared on.


hash

hash: string

Defined in: packages/aiui-claude-channel/src/page-tools.ts:51

Content hash of the tool set (page-computed) — identity across reloads.


ns

ns: string

Defined in: packages/aiui-claude-channel/src/page-tools.ts:43

The page namespace (morpho, aztec, …); unique per connection.


registeredAt

registeredAt: string

Defined in: packages/aiui-claude-channel/src/page-tools.ts:55

ISO timestamp of the (latest) registration.


shadowed?

optional shadowed?: true

Defined in: packages/aiui-claude-channel/src/page-tools.ts:77

Derived at PageToolDirectory.list time: this registration's namespace collides with another connection's, and call routing would pick the OTHER one. Advisory — the honest rendering of a duplicate instead of two identical rows (the page-tools proposal, git history).


source?

optional source?: SourceInfo

Defined in: packages/aiui-claude-channel/src/page-tools.ts:49

Where the page's source lives on disk.


tab?

optional tab?: Partial<Pick<TabRecord, "url" | "title" | "chromeTabId" | "windowId" | "tabIndex" | "targetId">>

Defined in: packages/aiui-claude-channel/src/page-tools.ts:47

The browser tab the page lives in (correlation hints; see TabInfo).


tools

tools: PageToolDescriptor[]

Defined in: packages/aiui-claude-channel/src/page-tools.ts:53

The declared tools.


url?

optional url?: string

Defined in: packages/aiui-claude-channel/src/page-tools.ts:45

The page's live location.href at registration time.