woopcode docs
v1.0.0 GitHub

ask_user

Ask the user questions to gather information needed to complete their request.

Use this when you need:

  • Clarification on ambiguous requests
  • Additional details or preferences
  • User confirmation before proceeding
  • Input that only the user can provide

You can ask multiple questions at once. Each question will be presented to the user, and their answers will be returned to you.

Examples:

  • "Which API endpoint should I modify?"
  • "Do you want to use TypeScript or JavaScript?"
  • "Should I update the tests as well?" Stops the turn and waits for your answer.

Parameters#

Parameter Type Required Description
questions array Yes Array of questions to ask the user (e.g., ['What is the API key?', 'Which environment?'])

Example#

ask_user({ questions: "…" })

Approval#

Stops the turn and waits for your answer.

See also#

  • Tools — every tool, and which of them can change your files
  • Approval modes — what gates the tools that change things

Added in woopcode@0.6.0