Fetch Tool

Make HTTP requests to external APIs and web services.

Overview

The fetch tool lets agents make HTTP requests (GET, POST, PUT, DELETE, etc.) to external APIs. The agent can read web pages, call REST APIs, download data, and interact with web services.

Configuration

toolsets:
  - type: fetch

Options

Property Type Default Description
timeout int 30 Request timeout in seconds

Custom Timeout

toolsets:
  - type: fetch
    timeout: 60
💡 Fetch vs. API Tool

The fetch tool gives the agent full control over HTTP requests at runtime. The API tool lets you predefine specific API calls as named tools with typed parameters. Use fetch for general-purpose HTTP access; use the API tool for well-known endpoints you want to expose as structured tools.