Web Search
searchSearches the web via Claude Code CLI to answer research questions, documentation lookups, and API references with synthesized answers and source URLs for verification.
Instructions
Web search via Claude Code CLI using WebSearch and WebFetch tools. Searches the web and synthesizes a comprehensive answer with source URLs.
Use for: current information, documentation lookups, API references, comparing libraries, and research questions.
Cost: Typically ~$0.02-0.05/search with Sonnet.
Tips:
Ask specific, focused questions for best results.
Results include source URLs for verification.
Use maxResponseLength to control response verbosity.
Increase timeout for complex research queries that may require multiple web fetches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model alias or full Claude model name | |
| query | Yes | Search query or question | |
| effort | No | Effort level: low, medium, high, or max (default: medium for search) | |
| timeout | No | Timeout in milliseconds | |
| sessionId | No | Claude session ID to resume with --resume | |
| maxBudgetUsd | No | Maximum cost budget in USD for this call (passed to --max-budget-usd) | |
| workingDirectory | No | Working directory for the CLI | |
| maxResponseLength | No | Soft limit on response length in words | |
| noSessionPersistence | No | Disable session persistence for ephemeral print calls |