So, this might be confusing, but I want to make a command that makes it so a player can type something, and if I were to do a different command, I would be able to see what that player typed.
This might help with the question
arg-1 is "Text":
add arg-1 to {Text}
arg-1 is "SeeText":
send "%{Text}%" to player
The player would do /<command> Text <text>,
Then I would do /<same command> SeeText, then it would show me what the player typed in '<text>'