Skip to content

Interface: SelectionSnapshot

Defined in: aiui-intent-runtime/src/selection.ts:42

A frozen record of one on-screen selection, enough to ask an agent about it.

Properties

at

at: number

Defined in: aiui-intent-runtime/src/selection.ts:58

Epoch ms of capture (used for TTL expiry).


cell?

optional cell?: string

Defined in: aiui-intent-runtime/src/selection.ts:50

data-cell (dataflow node) of the selection's start element, if stamped.


cellLoc?

optional cellLoc?: string

Defined in: aiui-intent-runtime/src/selection.ts:52

That cell's definition site (file:line — the cell(...) call), if resolvable.


rects

rects: SelectionRect[]

Defined in: aiui-intent-runtime/src/selection.ts:46

Per-line highlight rectangles (viewport coords), capped at MAX_RECTS.


sourceLoc?

optional sourceLoc?: string

Defined in: aiui-intent-runtime/src/selection.ts:48

data-source-loc (file:line:col) of the selection's start element, if stamped.


tex?

optional tex?: string

Defined in: aiui-intent-runtime/src/selection.ts:54

TeX source when the selection is rendered mathematics.


text

text: string

Defined in: aiui-intent-runtime/src/selection.ts:44

The selected text, trimmed and capped at MAX_TEXT chars.


url

url: string

Defined in: aiui-intent-runtime/src/selection.ts:56

location.href when the snapshot was taken.