minibuffer-contents

minibuffer-contents is a built-in function in `C source code'.

(minibuffer-contents)

Return the user input in a minibuffer as a string.
If the current buffer is not a minibuffer, return its entire contents.