What
AskUserQuestion is the tool Claude uses to ask you a question, often with choices to pick from. Each use of a tool is a tool call, and each tool call has an ID. The question Claude Code sends to the app that displays it now includes that ID as tool_use_id, when the request has a text request ID. Before, it had no such field.
Why
Apps that show Claude's questions can now tell which tool call a question belongs to.
Names in the bundletool_use_id
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up tool_use_id, on Run Claude Code programmatically.
The following table lists ways a run starts, with the `parent_tool_use_id` value and when messages arrive:headless see the edit
Added since
A small documentation edit on Monitoring touched a line naming tool_use_id after this was published.
Claude can also write to the user by calling a message tool, for example to show a code snippet in the middle of a task. If [model response text is captured](#content-capture), that message is logged as a separate event, with the text in `…cowork/monitoring see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
A small documentation edit on Monitoring touched a line naming tool_use_id after this was published.
Anthropic's release notes agree
Added an Ask render site so a mod can explain a tool's permission prompt by drawing above it, and tool_use_id in the AskUserQuestion render…