I've been learning more about refactoring operations ("code actions") in the Language Server Protocol and they're more limited than I realised.
An action is basically a name and an edit. There's no scope for prompting the user or offering GUI options.
... and my third refactoring with Cursor changed some function calls that I didn't want it to modify. Subtle.
I've had the most success with AI coding tools when I know exactly what I want the output to look like.