FetchUrlToolOptions
Defined in: web/tools.ts:43
Properties
Section titled “Properties”allowedUrls?
Section titled “allowedUrls?”
optionalallowedUrls?: readonlyUrlPattern[]
Defined in: web/tools.ts:48
URL patterns (glob strings and/or RegExps) allowed past the address check — see
AddressPolicy.allowedUrls. Empty by default.
allowPrivateNetwork?
Section titled “allowPrivateNetwork?”
optionalallowPrivateNetwork?: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.
maxRedirects?
Section titled “maxRedirects?”
optionalmaxRedirects?:number
Defined in: web/tools.ts:61
Redirect hops to follow before refusing. Default 20.
maxResponseBytes?
Section titled “maxResponseBytes?”
optionalmaxResponseBytes?:number
Defined in: web/tools.ts:59
Stop reading a response body at this many bytes. Default 1,000,000 (1 MB).
resolver?
Section titled “resolver?”
optionalresolver?:HostnameResolver
Defined in: web/tools.ts:55
Hostname resolver override. Defaults to node:dns; exists so the policy can be tested.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: web/tools.ts:57
Wall-clock timeout for the whole fetch, in milliseconds. Default 30,000 (30s).