Built-in tools
You can build your own custom tools, but some capabilities are common enough that Anthropic ships them pre-built. You don't write the code. You don't host the sandbox. You just declare the tool, and Anthropic runs it.
한국어 대본
- 00:00직접 맞춤형 도구를 만들 수 있지만, 일부 기능은 충분히 일반적이어서
- 00:06Anthropic이 미리 만들어 제공합니다. 코드를 작성하거나 샌드박스를 호스팅할 필요 없이
- 00:11도구를 선언하기만 하면 Anthropic이 실행합니다. Anthropic은 서버 도구를 제공하며
- 00:18이 도구는 Anthropic의 인프라에서 실행됩니다. 직접 실행하지 않고 Anthropic이 실행하므로
- 00:23이 호출에는 에이전트 루프가 필요하지 않습니다. Claude가 도구를 직접 호출하고 결과가
- 00:27같은 응답 안에 돌아옵니다. 주요 도구로는 web search가 있으며, 이는
- 00:32인터넷을 검색하고 인용이 포함된 결과를 반환합니다. code execution은 코드를 작성하고 실행하며
- 00:36샌드박스에서 이를 Python으로 수행하며, web fetch는 URL에서 전체 콘텐츠를 가져옵니다.
- 00:41이제 주요 도구 몇 가지를 한 파일에서 살펴보겠습니다. message.create 호출 두 개와
- 00:46하나는 web search를 사용하고 다른 하나는 code execution을 사용하는 호출입니다.
- 00:52여기서 주목할 점은 두 가지입니다. 첫째, 여기에는 에이전트 루프가 없습니다. 중지 이유를 전환하지도 않고
- 00:56도구 결과를 다시 전달하지도 않습니다. Anthropic이 서버 측에서 도구를 실행하며
- 01:01응답에 이미 결과가 들어 있습니다. 둘째, 이제 응답에는 새로운 블록 유형이 있습니다. server tool use
- 01:06도구 호출용 블록, 출력용 code execution 도구 결과, 그리고 일반 텍스트 블록입니다. 이제
- 01:12실행해 보겠습니다. web search에서는 Claude의 도구 호출이 출력된 다음, 최신 모델 출시 소식에 대한 한 문장 답변과
- 01:19검색 인용이 포함된 결과를 보게 됩니다. code execution에서는
- 01:25Claude가 작성한 실제 Python 코드와 샌드박스 실행 결과인 stdout, 그리고
- 01:30최종 텍스트 답변을 보게 됩니다.
- 01:32검색 크롤러를 시작할 필요가 없었습니다.
- 01:34Python 샌드박스를 실행하지도 않았습니다.
- 01:36도구 두 개를 선언하고 두 기능을 무료로 얻었습니다.
- 01:39다른 범주도 있다는 점을 알아 둘 필요가 있습니다.
- 01:41클라이언트 도구는 코드가 실행되는 곳에서 실행됩니다.
- 01:43이 도구들은 Claude SDK에 포함되어 있으므로 스키마를 직접 정의할 필요가 없습니다.
- 01:47이 예시 중 두 가지는 Memory입니다. Claude가 세션 간 메모리를 읽고 쓰게 합니다.
- 01:52또 하나는 bash로, Claude가 명령을 실행할 수 있는 영속적인 bash 셸입니다. 맞춤형 도구와 같은 형태지만
- 01:57SDK가 스키마와 합리적인 실행기를 제공합니다. 따라서 프로덕션 앱에서는
- 02:02몇 주가 걸릴 기능을 구현하는 가장 짧은 경로입니다. Websearch는 사실 확인 엔드포인트를 구동해
- 02:06초안의 모든 수치 및 규제 관련 주장을 실제 웹과 대조하여 검증합니다. 다만 기억해야 할 점은
- 02:12인터넷에서 검증되었다고 해서 반드시 사실인 것은 아닙니다. 그러므로 항상 Claude의 작업을
- 02:15다시 꼼꼼히 확인하세요.
- 02:22서버 도구, web search, code execution, web fetch는 tools 배열에 선언되어 있습니다.
- 02:27Anthropic이 실행합니다.
- 02:28루프 없이 같은 응답에서 결과를 받습니다.
- 02:31Anthropic이 호스팅한다는 개념은 관리형 에이전트를 통해 전체 에이전트로 확장되며
- 02:37단일 도구에만 적용되는 것이 아닙니다.
- 02:41이제 시작하겠습니다.
Server tools: declared by you, run by Anthropic
Anthropic provides server tools that run on their infrastructure. You don't execute these — Anthropic does. That means you don't need an agent loop for these calls. Claude calls the tools on its own, and the result comes back inside the same response.
The main ones are:
- Web search — searches the internet and returns results with citations
- Code execution — writes and runs Python in a sandbox
- Web fetch — retrieves full content from URLs
Two server tools in one file
Let's check out some of the big ones in one file: two messages.create calls, one with web search and one with code execution.
Two things to notice:
- There's no agent loop here. We don't switch on
stop_reason. We don't push tool results back. Anthropic runs the tool server-side, and the response already contains the result. - The response has new block types. A
server_tool_useblock for the tool call, a code execution tool result block for the output, plus the regulartextblocks.
Running it
For web search, you'll see Claude's tool call printed, then a one-sentence answer about the latest model release with the search citations folded in.
For code execution, you'll see the actual Python Claude wrote, the stdout from the sandbox running it, and a final text answer.
We didn't have to spin up a search crawler. We didn't run a Python sandbox. We declared two tools and got both for free.
The other category: client tools
Worth knowing the other category exists. Client tools run where your code runs. Anthropic publishes their schemas and trains Claude on them, so you don't have to define the schema yourself. Two examples:
- Memory — Claude reads and writes memory across sessions
- Bash — a persistent bash shell so Claude can execute commands

They have the same shape as a custom tool, but the SDK gives you the schema and a sensible runner.
Why this matters in production
In a production app, this is the shortest path to features that would otherwise take weeks. Web search can power a fact-check endpoint that verifies every numeric and regulatory claim in a draft against the live web.

One reminder, though: just because something is validated on the internet doesn't mean it's true. Always double-check Claude's work.
Recap
- Server tools — web search, code execution, web fetch — are declared in your
toolsarray. Anthropic runs them. - You get the result in the same response, with no agent loop required. Look for
server_tool_useand tool result blocks alongside the regular text blocks. - Client tools like memory and bash run where your code runs, but the SDK ships the schema and a runner for you.
- The "hosted by Anthropic" idea scales all the way up: managed agents apply it to the entire agent, not just one tool.