FetchUrlConfig
Auto-generated API reference for FetchUrlConfig.
Interface: FetchUrlConfig
Defined in: fetch-url.ts:4
#Properties
#allowedHosts?
optionalallowedHosts?:string[]
Defined in: fetch-url.ts:28
Hostname allowlist. If set, every request (and every redirect hop)
must match a literal hostname in this list β overrides
allowPrivateHosts. Wildcards are not supported by design.
#allowPrivateHosts?
optionalallowPrivateHosts?:boolean
Defined in: fetch-url.ts:17
Allow requests to private/loopback/link-local addresses. Off by default so an agent can't reach AWS IMDS (169.254.169.254), the loopback interface, or internal RFC1918 services. Set true only when the tool runs against a vetted internal target.
#maxBytes?
optionalmaxBytes?:number
Defined in: fetch-url.ts:6
Maximum bytes to read from the response body. Default: 200 KB.
#maxRedirects?
optionalmaxRedirects?:number
Defined in: fetch-url.ts:22
Max redirects to follow. Each hop's resolved host is re-checked
against allowPrivateHosts to block redirect-based SSRF. Default 3.
#timeoutMs?
optionaltimeoutMs?:number
Defined in: fetch-url.ts:8
Request timeout in ms. Default: 15000.
#userAgent?
optionaluserAgent?:string
Defined in: fetch-url.ts:10
Header value for User-Agent. Default: AgentsKit/1.0.