Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
One change · api

bash-tool changed

agents-and-tools/tool-use/bash-tool

Nearest release: v2.1.280, published under an hour 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+19added
Lines−19removed
From line 30 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits4to this page, all time

The whole hunk

from line 30, old and new numbered
/
lines
from line 30
3030 -H "x-api-key: $ANTHROPIC_API_KEY" \
3131 -H "anthropic-version: 2023-06-01" \
3232 -d '{
33 "model": "claude-opus-5",
33 "model": "claude-opus-5-5",
3434 "max_tokens": 1024,
3535 "tools": [
3636 {
from line 49
4949 
5050 ```bash CLI
5151 ant messages create \
52 --model claude-opus-5 \
52 --model claude-opus-5-5 \
5353 --max-tokens 1024 \
5454 --tool '{type: bash_20250124, name: bash}' \
5555 --message '{role: user, content: List all Python files in the current directory.}'
from line 59
5959 client = anthropic.Anthropic()
6060 
6161 response = client.messages.create(
62 model="claude-opus-5",
62 model="claude-opus-5-5",
6363 max_tokens=1024,
6464 tools=[{"type": "bash_20250124", "name": "bash"}],
6565 messages=[
from line 74
7474 const client = new Anthropic();
7575 
7676 const response = await client.messages.create({
77 model: "claude-opus-5",
77 model: "claude-opus-5-5",
7878 max_tokens: 1024,
7979 tools: [{ type: "bash_20250124", name: "bash" }],
8080 messages: [
from line 94
9494 var response = await client.Messages.Create(
9595 new()
9696 {
97 Model = Model.ClaudeOpus5,
97 Model = Model.ClaudeOpus5_5,
9898 MaxTokens = 1024,
9999 Tools = [new ToolBash20250124()],
100100 Messages =
from line 115
115115 client := anthropic.NewClient()
116116 
117117 response, err := client.Messages.New(context.TODO(), anthropic.MessageNewParams{
118 Model: anthropic.ModelClaudeOpus5,
118 Model: anthropic.ModelClaudeOpus5_5,
119119 MaxTokens: 1024,
120120 Tools: []anthropic.ToolUnionParam{
121121 {OfBashTool20250124: &anthropic.ToolBash20250124Param{}},
from line 138
138138 
139139 Message response = client.messages().create(
140140 MessageCreateParams.builder()
141 .model(Model.CLAUDE_OPUS_5)
141 .model(Model.CLAUDE_OPUS_5_5)
142142 .maxTokens(1024)
143143 .addTool(ToolBash20250124.builder().build())
144144 .addUserMessage("List all Python files in the current directory.")
from line 155
155155 $client = new Client();
156156 
157157 $response = $client->messages->create(
158 model: 'claude-opus-5',
158 model: 'claude-opus-5-5',
159159 maxTokens: 1024,
160160 tools: [new ToolBash20250124()],
161161 messages: [
from line 170
170170 client = Anthropic::Client.new
171171 
172172 response = client.messages.create(
173 model: "claude-opus-5",
173 model: "claude-opus-5-5",
174174 max_tokens: 1024,
175175 tools: [{type: "bash_20250124", name: "bash"}],
176176 messages: [
from line 187
187187```json Output
188188{
189189 "id": "msg_01XAbCDeFgHiJkLmNoPQrStU",
190 "model": "claude-opus-5",
190 "model": "claude-opus-5-5",
191191 "stop_reason": "tool_use",
192192 "role": "assistant",
193193 "content": [
from line 841
841841 -H "x-api-key: $ANTHROPIC_API_KEY" \
842842 -H "anthropic-version: 2023-06-01" \
843843 -d '{
844 "model": "claude-opus-5",
844 "model": "claude-opus-5-5",
845845 "max_tokens": 1024,
846846 "tools": [
847847 {
from line 883
883883 
884884 ```bash CLI
885885 ant messages create <<'YAML'
886 model: claude-opus-5
886 model: claude-opus-5-5
887887 max_tokens: 1024
888888 tools:
889889 - type: bash_20250124
from line 912
912912 client = anthropic.Anthropic()
913913 
914914 response = client.messages.create(
915 model="claude-opus-5",
915 model="claude-opus-5-5",
916916 max_tokens=1024,
917917 tools=[{"type": "bash_20250124", "name": "bash"}],
918918 messages=[
from line 948
948948 const client = new Anthropic();
949949 
950950 const response = await client.messages.create({
951 model: "claude-opus-5",
951 model: "claude-opus-5-5",
952952 max_tokens: 1024,
953953 tools: [{ type: "bash_20250124", name: "bash" }],
954954 messages: [
from line 989
989989 var response = await client.Messages.Create(
990990 new()
991991 {
992 Model = Model.ClaudeOpus5,
992 Model = Model.ClaudeOpus5_5,
993993 MaxTokens = 1024,
994994 Tools = [new ToolBash20250124()],
995995 Messages =
from line 1038
10381038 client := anthropic.NewClient()
10391039 
10401040 response, err := client.Messages.New(context.TODO(), anthropic.MessageNewParams{
1041 Model: anthropic.ModelClaudeOpus5,
1041 Model: anthropic.ModelClaudeOpus5_5,
10421042 MaxTokens: 1024,
10431043 Tools: []anthropic.ToolUnionParam{
10441044 {OfBashTool20250124: &anthropic.ToolBash20250124Param{}},
from line 1079
10791079 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
10801080 
10811081 MessageCreateParams params = MessageCreateParams.builder()
1082 .model(Model.CLAUDE_OPUS_5)
1082 .model(Model.CLAUDE_OPUS_5_5)
10831083 .maxTokens(1024)
10841084 .addTool(ToolBash20250124.builder().build())
10851085 .addUserMessage("List all Python files in the current directory.")
from line 1121
11211121 $client = new Client();
11221122 
11231123 $response = $client->messages->create(
1124 model: 'claude-opus-5',
1124 model: 'claude-opus-5-5',
11251125 maxTokens: 1024,
11261126 tools: [new ToolBash20250124()],
11271127 messages: [
from line 1157
11571157 client = Anthropic::Client.new
11581158 
11591159 response = client.messages.create(
1160 model: "claude-opus-5",
1160 model: "claude-opus-5-5",
11611161 max_tokens: 1024,
11621162 tools: [{type: "bash_20250124", name: "bash"}],
11631163 messages: [