Contents

Ask User

ask_user · Tools · Context

Ask the user a question and pause until they answer

Parameters

NameTypeRequiredDescription
allow_custombooleanYesWhether the user may write their own answer instead of, or beside, the options. Required true when options is empty.
detailstringNoContext the user needs to answer: why you are asking, and what each choice leads to. Omit when the question says it all.
mode"single_choice" | "multi_choice"Yessingle_choice when the options exclude each other; multi_choice when the user may pick several (needs at least two options).
optionsstring[]YesThe answers to choose from, shown lettered A, B, C… Put the one you recommend first. At most 26, each distinct.
promptstringYesThe question, short and self-contained.