Skip to content
BENIBIX Learn

AskUserQuestion Tool

AI⌨️ Claude CodeBuilt-in Tools

Also known as AskUserQuestion, askUserQuestionTimeout

The tool Claude uses to ask you a question with choices.

Think of it like

It is like being asked: do you want soup or salad?

Example

Jack asks for a login page. Claude asks whether he wants email links or passwords, and builds the one he picks.

Why it matters

A quick choice up front saves building the wrong thing.

Definition

The AskUserQuestion tool lets Claude ask you a question with a few choices to pick from. Claude uses it when it needs a decision before it can go on. You pick an option, or type your own answer in the Other row. A question stays open until you answer it. The askUserQuestionTimeout setting can close it after 60 seconds, 5 minutes or 10 minutes, so Claude goes on without you.

Example code

json
{"askUserQuestionTimeout": "5m"}
Close a question no one answers after five minutes.
Claude stops to ask you, then goes on.

Common mistake

Leaving a long job running and walking away. It may wait on a question all night unless you set a timeout.

Key takeaways

  1. 1
    A few choices. Or your own answer.
  2. 2
    Waits for you. By default.
  3. 3
    A timeout. Lets Claude go on.

Learn it properly