VectorChat Docs

Web Tools

Agents can search the web and fetch content from URLs to find up-to-date information.

VectorChat includes built-in web tools that let agents search the internet and read content from public web pages. These tools don't require any account connection.

The web search tool lets agents find current information from the public web. It's useful when an agent needs:

  • Information beyond its training data
  • Current prices, stock values, or weather
  • Recent news or events
  • Verification of facts that may have changed

How It Works

Web search is powered by the Brave Search API. Agents can search with natural language queries and receive structured results including the page title, URL, snippet, and domain.

Search Features

  • Query operators -- Use site: to limit to a domain, - to exclude terms, and "quotes" for exact phrases.
  • Result count -- Return between 1 and 10 results per search (default 5).
  • Safe search -- Moderate safe search filtering is enabled by default.

Example Queries

Ask your agent things like:

  • "Search the web for the latest React 19 features"
  • "Find the current price of Bitcoin"
  • "Look up the weather in Zurich this week"

Web Fetch

The web fetch tool lets agents read the content of any public URL. It converts web pages into a readable format that the AI model can process.

Supported Content

Content TypeHow It's Returned
HTML pagesConverted to clean markdown
JSON dataPretty-printed with indentation
Plain textReturned as-is
XML/JavaScriptReturned as-is

Binary content (images, PDFs, videos) cannot be fetched.

Safety Features

The web fetch tool includes several protections:

  • SSRF protection -- Internal and private URLs are blocked. The tool only fetches public internet resources.
  • Blocked headers -- Security-sensitive headers like Authorization and Cookie cannot be set by the agent.
  • Size limits -- Responses are limited to 512 KB. Larger responses are truncated with an indicator.
  • Redirect limits -- A maximum of 5 redirects are followed. HTTPS-to-HTTP downgrades are blocked.
  • Rate limiting -- Requests are limited to 5 per second to prevent abuse.

Example Uses

Ask your agent things like:

  • "Read the documentation at this URL and summarize it"
  • "Fetch the JSON from this API endpoint"
  • "Get the content of this article"

Web tools are read-only and don't modify any external resources. They never require confirmation before executing.