Contrary to what I guessed initially, I now think the question has a great answer: the functor is representable if and only if $M$ is locally free, and the proof is EGA I, 9.4.10.
Kevin Buzzard
- 41.4k
- 13
- 166
- 245