Claude Certified Architect – Foundations Practice Question 26: Thinking Blocks Tool Results
Claude Certified Architect, Foundations · Test 3 · question 6 of 10
A developer enables thinking on a tool-using agent. After Claude returns a response containing a thinking block and a tool_use block, the developer's code runs the tool and builds the next request. To save tokens, the code keeps only the tool_use block in the assistant message. Reasoning quality then drops, and in some configurations the API returns an error. What is the correct way to send the tool result back?
Show answer and explanation
Answer:
During a tool-use turn, the thinking block (with its signature) must be returned unmodified along with the tool_use block, so Claude can continue its reasoning from where it left off. Altering or removing it breaks that continuity and can fail signature validation.
- A is wrong: thinking blocks are valid assistant content, and stripping them in a tool-use turn is the cause of the problem. - B is wrong: a paraphrase is a modification, has no valid signature, and a system prompt is not where reasoning is restored. - C is wrong: omitting the assistant turn discards the tool call and its result pairing, and a larger budget does not restore the lost reasoning.
Reference: Building with thinking: preserving thinking blocks