Specialize to catch the attention of HR/Recruiters/VPs; you are right, no one wants a generalist.
However, I find once I get in and do my specialty, I'll then generalize and flex as the project needs me. I am paid to be nice and make problems go away, above all.