Skip to main content
Claude’s tool use lets a model call functions you define. This guide shows how to wire Ceramic Search as a client tool, so Claude can retrieve real-time web results when generating a response.

Get your Ceramic API key

Create a free account to get started.

Generating model responses

When Claude needs to search, it returns a tool_use block with stop_reason: "tool_use". You execute the search, append the result as a tool_result in a user message, and call the API again for the final answer.

Set environment variables

Install dependencies

Full example

Run the example

Building agents

The Tool Runner handles the tool-calling loop automatically. Define ceramic_search with the @beta_tool decorator (Python) or betaZodTool (TypeScript) and the SDK executes it and continues the conversation until Claude returns a final answer.

Set environment variables

Install dependencies

Full example

Run the example