Doctype Action - Confirm Dialog?

Quick question:-

I have defined a doctype action and it’s associated server method, this generates a button on the form. Is there a way to get a confirmation dialog on the button when clicked? The python dialog api only exposes the msgprint and throw dialogs.

Or should I swap out the action for a custom button using the js add_custom_button way which does provide a confirm dialog?