@zhushanwen/pi-ask-user
Inline adaptive ask_user tool for Pi — single/multi-question structured input with split-pane preview, inline editor, and optional comments.
Package details
Install @zhushanwen/pi-ask-user from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@zhushanwen/pi-ask-user- Package
@zhushanwen/pi-ask-user- Version
0.0.1- Published
- Jun 17, 2026
- Downloads
- not available
- Author
- zhushanwen321
- License
- MIT
- Types
- extension
- Size
- 129.5 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@zhushanwen/pi-ask-user
Inline adaptive ask_user tool for Pi coding agent. Single question (no tabs) or 1-4 questions (tab view + submit). Split-pane Markdown preview on wide terminals, inline free-text editor, optional comments.
Install
pi install npm:@zhushanwen/pi-ask-user
Tool
ask_user — structured clarifying questions with 2-4 options each. Users can always pick "Other" for free-text input. Supports multiSelect and optional per-question comments.
Features
- Adaptive layout: single question → no tab bar; 1-4 questions → tabbed view + Submit tab
- Split-pane preview (≥84 cols): option list left, selected option details right
- Inline free-text editor: select "Other" → Enter → type custom answer
- Optional comments:
allowComment: true→ after selection, prompt for a comment - Multi-select:
multiSelect: true→ toggle checkboxes, Enter to confirm - Headless-safe: disables the tool and returns
isErrorwhen no UI available