# Parallel
> Parallel gives AI agents best-in-class tools to search and extract context from the web. Web results returned by Parallel are compressed for optimal token efficiency at inference time.

- **Package:** @parallel-web/ai-sdk-tools
- **Author:** Parallel
- **Tags:** search, web, extraction

## Environment Variables
- `PARALLEL_API_KEY`

## Included Tools
- **searchTool:** Search the web with token-optimized compressed results
- **extractTool:** Extract context and content from web pages

## Installation
```bash
npm install @parallel-web/ai-sdk-tools
```

## Usage
```typescript
import { generateText, stepCountIs } from 'ai';
import { searchTool, extractTool } from '@parallel-web/ai-sdk-tools';

const { text } = await generateText({
  model: 'google/gemini-3-pro-preview',
  prompt: 'When was Vercel Ship AI?',
  tools: {
    webSearch: searchTool,
    webExtract: extractTool,
  },
  stopWhen: stepCountIs(3),
});

console.log(text);
```

## Links
- [Documentation](https://www.npmjs.com/package/@parallel-web/ai-sdk-tools)
- [npm](https://www.npmjs.com/package/@parallel-web/ai-sdk-tools)

---
[Full Library Index](/library.md)