Skip to content

Glossary: Building with LLMs Basics

Tool result

Also written: tool_result, function_call_output, is_error

What your program sends back after running a tool: a `tool_result` block for Claude or a `function_call_output` item for OpenAI. If the tool fails, send the error text back (Claude has `"is_error": True`) so the model can explain it.

Where the book teaches it

Related terms

Tool callTool loop