Web Search
searchSearch the web and receive a synthesized answer with source URLs. Use for current information, documentation, API references, and research questions.
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 |
|---|---|---|---|
| query | Yes | Search query or question | |
| model | No | Model alias or full Claude model name | |
| sessionId | No | Claude session ID to resume with --resume | |
| noSessionPersistence | No | Disable session persistence for ephemeral print calls | |
| workingDirectory | No | Working directory for the CLI | |
| timeout | No | Timeout in milliseconds | |
| maxResponseLength | No | Soft limit on response length in words | |
| maxBudgetUsd | No | Maximum cost budget in USD for this call (passed to --max-budget-usd) | |
| effort | No | Effort level: low, medium, high, or max (default: medium for search) |