Question 1
Claude returns stop_reason=tool_use and a lookup_order tool_use block. The client runs the lookup and obtains a tracking status. How must it construct the continuation before requesting Claude’s final response?
Explanation
Correct Answer
Claude has not finished the turn at tool_use. The application must return a tool_result matching the requested tool_use_id; tool_result blocks precede any ordinary text in the continuation user message. The full history then lets Claude produce an evidence-grounded answer.
Incorrect Answers
The requested tool is pending even if prior assistant prose appears complete. Displaying that prose instead of continuing with the returned tool_result discards the tracking evidence.
The original context and tool_use identifier are required. Starting a fresh exchange with only tracking status breaks the tool-result linkage and customer intent.
The client, not the backend, returns the corresponding tool_result and makes the next Messages request. The backend cannot issue the model’s end_turn signal.