Skip to content
Preview
Will the runner cache survive the move to v4?
Yes. Entries saved by v3 restore under v4 as long as their keys match.

WebSearch

queryrequired
string
The words searched for, as sent.
staterequired
WebSearchState
In flight, done or failed.
results
readonly WebSearchResult[]
Default: []
The pages returned so far, in the search's order. They stay listed when the search fails.
open
boolean
Controlled open state.
defaultOpen
boolean
Default: false
Open when it first draws.
onOpenChange
(open: boolean, details: OpenChangeDetails) => void
Called when the header toggles it.
icon
CollapsibleHeaderProps["icon"]
chevron
CollapsibleHeaderProps["chevron"]
announce
boolean
Default: false
Announce the outcome politely when the search settles. Leave off where the conversation already announces it.
rootStyle
RootStyle<CollapsibleKnobs>
Typed StyleX override: where the line sits and its --collapsible-* knobs.

State machine

PreviewThe search is in progress.