Skip to main content
Give Claude live web search. Claude asks for a search, your code calls Stophy, and Claude answers from the results.

The search tool

Save this as stophy.ts. It calls Google search and returns the top 5 results as JSON. It works with no key. Set STOPHY_API_KEY to lift the free limit.
stophy.ts

Give it to Claude

Set ANTHROPIC_API_KEY in your environment. betaZodTool defines the search as a tool. The tool runner calls it whenever Claude asks, and returns Claude’s final message.