agentskit.js

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 maxBytes so a huge page can't flood the model's context window or blow memory.
  • Strips HTML tags by default; set raw: true to get the body verbatim.

#Parameters

#config?

FetchUrlConfig = \{\}

#Returns

ToolDefinition

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page