NAME
Claude::Agent::Content::ToolResult - Tool result content block
DESCRIPTION
A tool result content block containing the output from a tool execution.
ATTRIBUTES
type - Always 'tool_result'
tool_use_id - ID of the tool_use block this is responding to
content - Result content (string or ArrayRef of content blocks)
is_error - Boolean indicating if the tool execution failed
METHODS
text
my $text = $block->text;
Helper to get text content from result.
Note: Only extracts text from string content or 'text' type blocks in array content. Other content types (e.g., 'image') are silently ignored.
AUTHOR
LNATION, <email at lnation.org>
LICENSE
This software is Copyright (c) 2026 by LNATION.
This is free software, licensed under The Artistic License 2.0 (GPL Compatible).