# CLAUDE.md - web-retrieval
- Crate: web-retrieval
- Path: crates/tools/web-retrieval/
- Role: tool-lib
- Family: tools
- Integrations: mcp=false, logging=false, napi=false
## Overview
Implements web tooling:
- `web_fetch`: downloads a URL, converts HTML to Markdown (or returns text/JSON), optional Haiku summarization.
- `web_search`: semantic search via Exa and returns compact, citable result cards.
Environment:
- `EXA_API_KEY` required for `web_search`
- `ANTHROPIC_API_KEY` required only when `summarize=true` for `web_fetch`
## Quick Commands
```bash
# Lint & Clippy
cargo fmt -p web-retrieval -- --check
cargo clippy -p web-retrieval --all-targets -- -D warnings
# Tests
cargo test -p web-retrieval
# Build
cargo build -p web-retrieval
```
## Notes
Add any human-authored notes below. Content outside autogen blocks is preserved by xtask sync.