agentskit.js

FetchUrlConfig

Auto-generated API reference for FetchUrlConfig.

Interface: FetchUrlConfig

Defined in: fetch-url.ts:4

#Properties

#allowedHosts?

optional allowedHosts?: 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?

optional allowPrivateHosts?: 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?

optional maxBytes?: number

Defined in: fetch-url.ts:6

Maximum bytes to read from the response body. Default: 200 KB.


#maxRedirects?

optional maxRedirects?: 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?

optional timeoutMs?: number

Defined in: fetch-url.ts:8

Request timeout in ms. Default: 15000.


#userAgent?

optional userAgent?: string

Defined in: fetch-url.ts:10

Header value for User-Agent. Default: AgentsKit/1.0.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page