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

thinking-tool-workflows changedbuild-with-claude/thinking-tool-workflows

Nearest release: v2.1.281, 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+31added
Lines−0removed
From line 30 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits13to this page, all time

The whole hunk

from line 30, old and new numbered
/
lines
from line 30
3030 Send a request with adaptive thinking enabled and the tool defined. Apart from the `thinking` parameter, this is a standard [tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview) request:
3131 
3232 <CodeGroup>
33 ```bash cURL
34 curl https://api.anthropic.com/v1/messages \
35 -H "anthropic-version: 2023-06-01" \
36 -H "content-type: application/json" \
37 -H "x-api-key: $ANTHROPIC_API_KEY" \
38 -d @- <<'EOF'
39 {
40 "model": "claude-opus-4-8",
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
57 ```
58 
3359 ```bash CLI
3460 ant messages create --transform content <<'YAML'
3561 model: claude-opus-4-8
from line 320
294320 Each sample is a self-contained script: it repeats the first request, then immediately sends the follow-up using the response it just received.
295321 
296322 <CodeGroup>
323 ```bash cURL
324 # This workflow does not translate well to a one-off shell command.
325 # Use one of the SDK examples in this code group instead.
326 ```
327 
297328 ```bash CLI
298329 # First turn: write the assistant content array (thinking and tool_use
299330 # blocks, signatures intact) to a file. Routing model-generated text
Feedback