I'd rather leave what_filter and show_preview out (so use default values). They are pretty arbitrary this way. Later you can submit a follow up patch to actually allow to pass these parameters from the js code.