For AI agents: docs.octen.ai/integrations/anthropic-tool-calling.md
Claude decides when to search, your code runs the query on Octen Web Search, and Claude answers from the results.Get API Key
Create a key from the API Platform.
Web Search API Reference
Full request/response schema.
Install
Quick Start
Set your Octen and Anthropic API keys:response.content unchanged, thinking blocks included, and send every tool_result from one turn back in a single user message.
Add an Extract Tool
Let Claude read a full page from a URL it finds, with Extract. Add this code to the Quick Start program, right afterfunctions = {"web_search": web_search}:
Add More Search Tools
Let Claude also use Web Search Premier, Broad Search, News Search, Business Search, Pulse Search, Place Search, Image Search, and Design Search. Add this code to the Quick Start program, right afterfunctions = {"web_search": web_search}. Each tool takes a query and returns the response data as JSON, with the same fields as the API reference:
Last modified on November 24, 2026