@zjie-wang/pi-ask-user

Interactive question dialog for Pi with options, multi-select, and free-text answers

Packages

Package details

extension

Install @zjie-wang/pi-ask-user from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@zjie-wang/pi-ask-user
Package
@zjie-wang/pi-ask-user
Version
0.2.0
Published
Oct 19, 2026
Downloads
221/mo · 166/wk
Author
zjie-wang
License
MIT
Types
extension
Size
442.3 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "image": "https://raw.githubusercontent.com/ZJie-Wang/pi-extensions/main/extensions/ask-user/screenshot.png",
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

ask-user

ask_user lets the agent ask you questions instead of guessing.

What the user sees

ask_user dialog

What the model sees

Tool definition (request payload):

{
  "name": "ask_user",
  "description": "Ask user questions. Provide distinct options, with the recommended one first; set multiSelect when options are not mutually exclusive. Omit options for a free-text question.",
  "parameters": {
    "type": "object",
    "required": ["questions"],
    "properties": {
      "questions": {
        "type": "array",
        "items": {
          "type": "object",
          "required": ["question"],
          "properties": {
            "question": {
              "type": "string",
              "maxLength": 300
            },
            "options": {
              "type": "array",
              "maxItems": 4,
              "items": {
                "type": "string",
                "maxLength": 150
              }
            },
            "multiSelect": {
              "type": "boolean",
              "default": false
            }
          }
        }
      }
    }
  }
}

System prompt guidance — this extension's contribution, alongside the other tools in the session:

Available tools:
- ask_user: Ask the user questions

Guidelines:
- Surface uncertainty or ambiguity. Whenever missing user input blocks progress, use ask_user to ask rather than guess.

Install

pi install npm:@zjie-wang/pi-ask-user