This includes the place where the thing is said, who says it, and the things that you have already said. Also, pragmatics studies how people speak when they both know something.
Pragmatics studies how people speak not literally, but in an indirect way. It studies why, even though this is the case, people can still understand each other. It studies how people can understand each other even if the words are ambiguous.
The ability to understand what someone intends to tell you is called pragmatic competence.