Follow Discord
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

Log at info level changed

agents-and-tools/tool-use/tool-runner

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

The whole hunk

from line 438, old and new numbered
/
lines
from line 438
438438 <?php
439439 
440440 use Anthropic\Client;
441 use Anthropic\Beta\Messages\BetaTextBlock;
442 use Anthropic\Beta\Messages\BetaToolUseBlock;
441443 use Anthropic\Lib\Tools\BetaRunnableTool;
442444 use Anthropic\Messages\Model;
443445 
from line 497
495497 
496498 foreach ($runner as $message) {
497499 foreach ($message->content as $block) {
498 if ($block->type === 'text') {
499 echo $block->text, "\n";
500 } elseif ($block->type === 'tool_use') {
501 echo "[Tool call: {$block->name}]\n";
500 switch (true) {
501 case $block instanceof BetaTextBlock:
502 echo $block->text, "\n";
503 break;
504 case $block instanceof BetaToolUseBlock:
505 echo "[Tool call: {$block->name}]\n";
506 break;
502507 }
503508 }
504509 }
from line 1456
14511456 foreach ($runner as $message) {
14521457 $toolResults = [];
14531458 foreach ($message->content as $block) {
1454 if ($block instanceof BetaToolUseBlock) {
1459 if ($block instanceof \Anthropic\Beta\Messages\BetaToolUseBlock) {
14551460 $toolResults[] = [
14561461 'type' => 'tool_result',
14571462 'tool_use_id' => $block->id,
Feedback