fetchUrl
Auto-generated API reference for fetchUrl.
Function: fetchUrl()
fetchUrl(
config?):ToolDefinition
Defined in: fetch-url.ts:39
Tool: fetch a URL and return its text content.
- Enforces HTTPS/HTTP only (no file://, ftp://, etc).
- Caps response size via
maxBytesso a huge page can't flood the model's context window or blow memory. - Strips HTML tags by default; set
raw: trueto get the body verbatim.
#Parameters
#config?
FetchUrlConfig = \{\}
#Returns
ToolDefinition