---
name: web-search
description: "Web search and content extraction with Tavily and Exa via inference.sh CLI. Apps: Tavily Search, Tavily Extract, Exa Search, Exa Answer, Exa Extract. Capabilities: AI-powered search, content extraction, direct answers, research. Use for: research, RAG pipelines, fact-checking, content aggregation, agents. Triggers: web search, tavily, exa, search api, content extraction, research, internet search, ai search, search assistant, web scraping, rag, perplexity alternative"
allowed-tools: Bash(belt *)
title: web-search
canonical_url: https://skilld.dev/gh/inference-sh/skills/web-search
last_updated: 2026-11-18T09:02:59.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install inference-sh/skills/web-search`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/web-search`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/inference-sh/skills/web-search) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/web-search`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/web-search --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/web-search --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

> **Install the belt CLI skill:** `npx skills add belt-sh/cli`

# Web Search & Extraction

Search the web and extract content via [inference.sh](https://inference.sh) CLI.

![Web Search & Extraction](https://cloud.inference.sh/app/files/u/4mg21r6ta37mpaz6ktzwtt8krr/01kgndqjxd780zm2j3rmada6y8.jpeg)

## Quick Start

> Requires inference.sh CLI (`belt`). [Install instructions](https://raw.githubusercontent.com/inference-sh/skills/refs/heads/main/cli-install.md)

```bash
belt login

# Search the web
belt app run tavily/search-assistant --input '{"query": "latest AI developments 2024"}'
```


## Available Apps

### Tavily

| App | App ID | Description |
|-----|--------|-------------|
| Search Assistant | `tavily/search-assistant` | AI-powered search with answers |
| Extract | `tavily/extract` | Extract content from URLs |

### Exa

| App | App ID | Description |
|-----|--------|-------------|
| Search | `exa/search` | Smart web search with AI |
| Answer | `exa/answer` | Direct factual answers |
| Extract | `exa/extract` | Extract and analyze web content |

## Examples

### Tavily Search

```bash
belt app run tavily/search-assistant --input '{
  "query": "What are the best practices for building AI agents?"
}'
```

Returns AI-generated answers with sources and images.

### Tavily Extract

```bash
belt app run tavily/extract --input '{
  "urls": ["https://example.com/article1", "https://example.com/article2"]
}'
```

Extracts clean text and images from multiple URLs.

### Exa Search

```bash
belt app run exa/search --input '{
  "query": "machine learning frameworks comparison"
}'
```

Returns highly relevant links with context.

### Exa Answer

```bash
belt app run exa/answer --input '{
  "query": "What is the population of Tokyo?"
}'
```

Returns direct factual answers.

### Exa Extract

```bash
belt app run exa/extract --input '{
  "url": "https://example.com/research-paper"
}'
```

Extracts and analyzes web page content.

## Workflow: Research + LLM

```bash
# 1. Search for information
belt app run tavily/search-assistant --input '{
  "query": "latest developments in quantum computing"
}' > search_results.json

# 2. Analyze with Claude
belt app run anthropic/claude-sonnet-5-5 --input '{
  "text": "Based on this research, summarize the key trends: <search-results>"
}'
```

## Workflow: Extract + Summarize

```bash
# 1. Extract content from URL
belt app run tavily/extract --input '{
  "urls": ["https://example.com/long-article"]
}' > content.json

# 2. Summarize with LLM
belt app run anthropic/claude-haiku-5-5 --input '{
  "text": "Summarize this article in 3 bullet points: <content>"
}'
```

## Use Cases

- **Research**: Gather information on any topic
- **RAG**: Retrieval-augmented generation
- **Fact-checking**: Verify claims with sources
- **Content aggregation**: Collect data from multiple sources
- **Agents**: Build research-capable AI agents

## Related Skills

```bash
# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli

# LLM models (combine with search for RAG)
npx skills add inference-sh/skills@llm-models

# Image generation
npx skills add inference-sh/skills@ai-image-generation
```

Browse all apps: `belt app list`

## Documentation

- [Adding Tools to Agents](https://inference.sh/docs/agents/adding-tools) - Equip agents with search
- [Building a Research Agent](https://inference.sh/blog/guides/research-agent) - LLM + search integration guide
- [Tool Integration Tax](https://inference.sh/blog/tools/integration-tax) - Why pre-built tools matter

