Skip to main content

Parallel Web Tools

Parallel provides best-in-class tools to search and extract context from the web. Results are compressed for optimal token efficiency at inference time.

Installation

Environment Variables

Get your API key from Parallel Platform.

Available Tools

Quick Start

1

Simple Usage

2

With Configuration

Adjust agent instructions, tool options, and provider settings for production — see the Configuration section below.

Using with AI SDK Directly

Search Tool

Extract Tool

Token Efficiency

Parallel compresses web results for optimal token usage:
  • Semantic compression - Extracts relevant content based on search objective
  • Token-dense excerpts - Returns compressed, information-rich snippets
  • Smart truncation - Intelligently limits content length

Advanced Example

Response Format

Best Practices

  1. Use semantic objectives - Describe what you’re looking for
  2. Limit results - Fewer results = faster responses
  3. Combine with extract - Search first, then extract full content
  4. Trust compression - Results are optimized for LLM consumption