define-tools changedagents-and-tools/tool-use/define-tools
Nearest release: v2.1.309, published 3 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+2added
Lines−2removed
From line
452
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits19to this page, all time
The whole hunk
from line 452, old and new numbered
/
from line 452
452452 messages: [
453453 ['role' => 'user', 'content' => "What's the weather like in San Francisco?"]
454454 ],
455 model: 'claude-opus-5-5',
455 model: Model::CLAUDE_OPUS_5_5,
456456 tools: [
457457 [
458458 'name' => 'get_weather',
from line 782
782782 messages: [
783783 ['role' => 'user', 'content' => "What's the weather like in San Francisco?"]
784784 ],
785 model: 'claude-opus-5',
785 model: Model::CLAUDE_OPUS_5,
786786 toolChoice: ['type' => 'tool', 'name' => 'get_weather'],
787787 tools: [
788788 [
No line in this hunk matches that.