I was looking for a way to get a user prompt within wez and came across this page which has an example for what you asked for "Example of interactively renaming the current tab".
Does this help at all?
Reply on news.ycombinator.com