Pi AskUserQuestion

Extension

Adds a model-invoked question tool that collects one to four structured choices or free-text answers in Pi's interactive terminal UI.

What it does

Pi AskUserQuestion gives the model a structured tool for pausing work and collecting user choices before it continues.

Each call can present one to four questions, support single or multiple selections, and accept a typed answer without requiring the model to invent an extra option.

When to reach for it

Invocation: Ask the model to clarify requirements or preferences; the model invokes the structured question tool.

Several valid implementation paths need an explicit user choice
Present concise options and return the selected label to the model.
More than one answer may apply
Use a multi-select question and combine checked options with optional typed input.
A larger request has a few independent decisions
Group up to four questions into tabs and review every answer before submission.

What it adds

  • One model-invoked tool with bounded question and option schemas.
  • An interactive terminal component for option selection, typed answers, answer review, cancellation, and compact result rendering.

How it fits

No related catalog surfaces are recorded.

Common questions

What happens outside an interactive session?
  • The call returns an error, marks the result cancelled, and removes the question tool from active tools for the rest of that session.
Can users provide an answer not listed by the model?
  • Yes. The component adds its own typed-answer row, so callers should provide only real choices rather than adding an Other option.

It’s working if

  • The terminal opens the question view and returns selected or typed answers to the model.
  • Duplicate question text or duplicate labels are rejected before the interactive view opens.

Source and setup

Provenance

Origin
Baishampayan Ghose
Current maintainer
Baishampayan Ghose
Relationship
original
Installed source
git:github.com/ghoseb/pi-askuserquestion
Source path
View source (src/index.ts)
Compatibility
  • Interactive Pi terminal UI
  • Pi extension and tool APIs
  • TypeBox-compatible tool schemas
License publication scope
Independently written factual summary and source link only; no source reuse permission is inferred from the incomplete license notice.
Reviewed revision
e58609c9e9c8c4e8a0348c96eaad38dd7e6f0578
Catalog revision
e0c035a297462c519315abfa1af31a1ed3bd9eef

Setup notes

  • Created and maintained by Baishampayan Ghose; installed directly from the original repository.
  • The reviewed package revision exposes one Pi extension entry point and requires an interactive terminal UI.
  • The pinned README names MIT but does not include license grant text. This catalog page uses independently written factual prose and does not assert source-reuse permission.