Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

build-a-tool-using-agent changedagents-and-tools/tool-use/build-a-tool-using-agent

Nearest release: v2.1.301, published 5 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+8added
Lines−21removed
From line 4,019 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits12to this page, all time

The whole hunk

from line 4019, old and new numbered
/
lines
from line 4019
40194019 
40204020Each SDK provides a helper that turns an ordinary function into a runnable tool and derives the input schema from its signature; the tabs below show the idiomatic form for each language.
40214021 
4022<CodeGroup>
4023 ```bash cURL
4024 #!/bin/bash
4025 # Ring 5: The Tool Runner SDK abstraction.
4022<CodeGroup exclude="shell">
4023 <CodeGroupItem language="cURL">
4024 The Tool Runner is a helper in the Claude SDK. Raw HTTP requests have no equivalent. To keep using curl, use the loop from [Ring 4](https://platform.claude.com/docs/en/agents-and-tools/tool-use/build-a-tool-using-agent#ring-4-error-handling).
4025 </CodeGroupItem>
40264026 
4027 # The Tool Runner SDK abstraction is available in all seven SDKs: Python,
4028 # TypeScript, C#, Go, Java, PHP, and Ruby. There is no equivalent for raw
4029 # curl requests. Switch to any SDK tab to see Ring 5, or keep the Ring 4
4030 # loop as your shell implementation.
4031 ```
4032 
4033 ```bash CLI
4034 #!/usr/bin/env bash
4035 # Ring 5: The Tool Runner SDK abstraction.
4036 set -euo pipefail
4037 
4038 # The Tool Runner SDK abstraction is available in all seven SDKs: Python,
4039 # TypeScript, C#, Go, Java, PHP, and Ruby. The ant CLI exposes the Messages
4040 # API directly and has no equivalent helper. Switch to any SDK tab to see
4041 # Ring 5, or keep the Ring 4 loop as your CLI implementation.
4042 ```
4027 <CodeGroupItem language="CLI">
4028 The Tool Runner is a helper in the Claude SDK. The `ant` CLI has no equivalent. To keep using the CLI, use the loop from [Ring 4](https://platform.claude.com/docs/en/agents-and-tools/tool-use/build-a-tool-using-agent#ring-4-error-handling).
4029 </CodeGroupItem>
40434030 
40444031 ```python Python
40454032 # Ring 5: The Tool Runner SDK abstraction.
Feedback