tool-search-tool changedagents-and-tools/tool-use/tool-search-tool
Nearest release: v2.1.307, published 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+51added
Lines−51removed
From line
84
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits15to this page, all time
The whole hunk
from line 84, old and new numbered
/
from line 84
8484<CodeGroup>
8585 ```bash cURL
8686 curl https://api.anthropic.com/v1/messages \
87 -H "x-api-key: $ANTHROPIC_API_KEY" \
88 -H "anthropic-version: 2023-06-01" \
89 -H "content-type: application/json" \
90 -d '{
91 "model": "claude-opus-5-5",
92 "max_tokens": 2048,
93 "messages": [
94 {
95 "role": "user",
96 "content": "What is the weather in San Francisco?"
87 -H "x-api-key: $ANTHROPIC_API_KEY" \
88 -H "anthropic-version: 2023-06-01" \
89 -H "content-type: application/json" \
90 -d '{
91 "model": "claude-opus-5-5",
92 "max_tokens": 2048,
93 "messages": [
94 {
95 "role": "user",
96 "content": "What is the weather in San Francisco?"
97 }
98 ],
99 "tools": [
100 {
101 "type": "tool_search_tool_regex_20251119",
102 "name": "tool_search_tool_regex"
103 },
104 {
105 "name": "get_weather",
106 "description": "Get the weather at a specific location",
107 "input_schema": {
108 "type": "object",
109 "properties": {
110 "location": {"type": "string"},
111 "unit": {
112 "type": "string",
113 "enum": ["celsius", "fahrenheit"]
97114 }
98 ],
99 "tools": [
100 {
101 "type": "tool_search_tool_regex_20251119",
102 "name": "tool_search_tool_regex"
103 },
104 {
105 "name": "get_weather",
106 "description": "Get the weather at a specific location",
107 "input_schema": {
108 "type": "object",
109 "properties": {
110 "location": {"type": "string"},
111 "unit": {
112 "type": "string",
113 "enum": ["celsius", "fahrenheit"]
114 }
115 },
116 "required": ["location"]
117 },
118 "defer_loading": true
119 },
120 {
121 "name": "search_files",
122 "description": "Search through files in the workspace",
123 "input_schema": {
124 "type": "object",
125 "properties": {
126 "query": {"type": "string"},
127 "file_types": {
128 "type": "array",
129 "items": {"type": "string"}
130 }
131 },
132 "required": ["query"]
133 },
134 "defer_loading": true
115 },
116 "required": ["location"]
117 },
118 "defer_loading": true
119 },
120 {
121 "name": "search_files",
122 "description": "Search through files in the workspace",
123 "input_schema": {
124 "type": "object",
125 "properties": {
126 "query": {"type": "string"},
127 "file_types": {
128 "type": "array",
129 "items": {"type": "string"}
135130 }
136 ]
137 }'
131 },
132 "required": ["query"]
133 },
134 "defer_loading": true
135 }
136 ]
137 }'
138138 ```
139139
140140 ```bash CLI
from line 479
479479 client = Anthropic::Client.new
480480
481481 message = client.messages.create(
482 model: "claude-opus-5-5",
482 model: Anthropic::Model::CLAUDE_OPUS_5_5,
483483 max_tokens: 2048,
484484 messages: [
485485 { role: "user", content: "What is the weather in San Francisco?" }
from line 801
801801event: content_block_delta
802802data: {"type": "content_block_delta", "index": 1, "delta": {"type": "input_json_delta", "partial_json": "{\"pattern\":\"weather\"}"}}
803803
804// Pause while search executes
804// Pause while search runs
805805
806806// Search results streamed
807807event: content_block_start
No line in this hunk matches that.