thinking-tool-workflows changedbuild-with-claude/thinking-tool-workflows
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+21added
Lines−24removed
From line
35
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits11to this page, all time
The whole hunk
from line 35, old and new numbered
/
from line 35
3535 -H "anthropic-version: 2023-06-01" \
3636 -H "content-type: application/json" \
3737 -H "x-api-key: $ANTHROPIC_API_KEY" \
38 -d @- <<'EOF'
39 {
40 "model": "claude-opus-5-5",
41 "max_tokens": 16000,
42 "thinking": {"type": "adaptive"},
43 "tools": [{
44 "name": "get_weather",
45 "description": "Get current weather for a location",
46 "input_schema": {
47 "type": "object",
48 "properties": {
49 "location": {"type": "string", "description": "City name"}
50 },
51 "required": ["location"]
52 }
53 }],
54 "messages": [{"role": "user", "content": "What's the weather in Paris?"}]
55 }
56 EOF
38 -d '{
39 "model": "claude-opus-5-5",
40 "max_tokens": 16000,
41 "thinking": {"type": "adaptive"},
42 "tools": [{
43 "name": "get_weather",
44 "description": "Get current weather for a location",
45 "input_schema": {
46 "type": "object",
47 "properties": {
48 "location": {"type": "string", "description": "City name"}
49 },
50 "required": ["location"]
51 }
52 }],
53 "messages": [{"role": "user", "content": "What is the weather in Paris?"}]
54 }'
5755 ```
5856
5957 ```bash CLI
from line 313
315313
316314 Each sample is a self-contained script: it repeats the first request, then immediately sends the follow-up using the response it just received.
317315
318 <CodeGroup>
319 ```bash cURL
320 # This workflow does not translate well to a one-off shell command.
321 # Use one of the SDK examples in this code group instead.
322 ```
316 <CodeGroup exclude="shell:cURL">
317 <CodeGroupItem language="cURL">
318 This workflow needs more logic than a single shell command. Use the Claude SDK to run it.
319 </CodeGroupItem>
323320
324321 ```bash CLI
325322 # First turn: write the assistant content array (thinking and tool_use
No line in this hunk matches that.