Skip to content

FetchUrlToolOptions

Defined in: web/tools.ts:43

optional allowedUrls?: readonly UrlPattern[]

Defined in: web/tools.ts:48

URL patterns (glob strings and/or RegExps) allowed past the address check — see AddressPolicy.allowedUrls. Empty by default.


optional allowPrivateNetwork?: boolean

Defined in: web/tools.ts:53

Disables the address check entirely — see AddressPolicy.allowPrivateNetwork. Default false. Never reachable from the model; discoverable via describeWebEnv.


optional maxRedirects?: number

Defined in: web/tools.ts:61

Redirect hops to follow before refusing. Default 20.


optional maxResponseBytes?: number

Defined in: web/tools.ts:59

Stop reading a response body at this many bytes. Default 1,000,000 (1 MB).


optional resolver?: HostnameResolver

Defined in: web/tools.ts:55

Hostname resolver override. Defaults to node:dns; exists so the policy can be tested.


optional timeoutMs?: number

Defined in: web/tools.ts:57

Wall-clock timeout for the whole fetch, in milliseconds. Default 30,000 (30s).