Unverified50% confidenceFactExact time
In the Messages API, a stop_reason of tool_use means the model is requesting a tool call, and the response contains a tool_use content block carrying the tool name, input parameters, and a unique tool_use_id.
1
Sources
50%
Confidence
Long-term
Relevance
11/1/2026
First Seen
Sources
Agent Harness Explained: Build an AI Agent by Hand in Python
youtubedoodle-monster10/29/2026
Related Entities
Related Claims
UnverifiedThe stop_reason field in the top-level response of the Anthropic Messages API has seven possible values in total: end_turn, tool_use, max_tokens, stop_sequence, refusal, pause_turn, and model_context_window_exceeded.74% similarUnverifiedThe Tool Calls events within Messages capture the tool-call intent in the AIMessage, whereas the standalone Tool Calls events capture the ToolMessage results after the tool has actually executed.72% similarUnverifiedWhen set_messages_params() provides tools in definitions form, the tool runner continues to run its function tools; once a tool is removed from tools, the runner no longer executes it.71% similarUnverifiedA tool call is essentially a special kind of text completion: the model is not running a program, but predicting which tool should be called and what parameters to pass.70% similarUnverifiedAnthropic's Messages API is a stateless conversational interface that models input as a list of role-based messages, expresses the reason for stopping in the response via the stop_reason field on content blocks, and requires the full history to be included with each request.70% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1122550API
curl https://kongchang.com/api/v1/knowledge/claims/1122550MCP
get_claim(id=1122550)