Skip to content

WebAccessInfo

Defined in: web/provider.ts:22

The describeWebEnv tool’s payload — see createWebToolProvider.

allowedSchemes: readonly string[]

Defined in: web/provider.ts:24

URL schemes this call’s fetchUrl will fetch.


allowedUrls: readonly string[]

Defined in: web/provider.ts:31

The URL patterns exempt from the address check for this call. Empty when nothing is exempt. Reported as display strings (String(pattern)) rather than raw UrlPattern values — a RegExp serializes to "{}" under JSON.stringify, silently losing the pattern once an AI SDK turn serializes the tool result.


allowPrivateNetwork: boolean

Defined in: web/provider.ts:34

true when this call’s fetchUrl has the address check disabled entirely — see AddressPolicy.allowPrivateNetwork. Its own field, not folded into allowedUrls.


maxRedirects: number

Defined in: web/provider.ts:40

Redirect hops this call’s fetchUrl will follow before refusing.


maxResponseBytes: number

Defined in: web/provider.ts:38

The response byte cap this call’s fetchUrl actually enforces.


timeoutMs: number

Defined in: web/provider.ts:36

The wall-clock timeout (ms) this call’s fetchUrl actually enforces.