People often speak indirectly. For example, "It's cold in here" might be intended not only as a comment on the temperature, but also as a request to turn on the heater. How are comprehenders' inferences about a speaker's intentions informed by their ability to reason about the speaker's mental states, i.e., mentalizing? We introduce a mechanistic framework by which mentalizing might be recruited for pragmatic inference, then ask: is mentalizing recruited primarily for sampling mental state information, or also for the deployment of that information for pragmatic inference? We find that the role of mentalizing is modulated by how explicitly a task involves knowledge. Mentalizing correlates with task performance when comprehenders are asked to sample and report mental state information (Experiment 1b), or when given mental state information explicitly and asked to make an inference (Experiment 2-Explicit); in contrast, mentalizing does not correlate with task performance, or correlates only weakly, when participants are given mental state information implicitly and asked to make a pragmatic inference (Experiment 1a, Experiment 2-Implicit). These results suggest that mentalizing is recruited flexibly, allowing comprehenders to construct meaning from under-specified input. MENTALIZING FOR PRAGMATIC INFERENCE 2 When do comprehenders mentalize for pragmatic inference? People often speak indirectly. For example, a speaker might say "It's cold in here" not just to comment on the temperature of the room, but also as an indirect request to turn on the heater. These indirect requests are demonstrably common; one study elicited requests from participants and found that over 80% of them were indirect in some way (Gibbs, 1981). Furthermore, they are ambiguous: in isolation, and often even in context, these utterances license more than one interpretation. Consequently, comprehenders must frequently infer which meaning was intended by the speaker in a given context. This inference could be challenging, as a speaker's intended interpretation may depend on what they want or what they know. How do comprehenders succeed under these conditions? One possibility is that making inferences about speaker intent uses a form of mentalizing (Frith & Frith, 2006). That is, comprehenders may infer a speaker's intended interpretation by relying in part on inferences about that speaker's mental states, perhaps constructing a model of their interlocutor. This model could include, among other things, the speaker's preferences, current emotional state, and beliefs about the world (Gibbs, 1987). These inferred mental states might allow a comprehender to modulate their interpretation of ambiguous utterances not only as a function of their own contextual knowledge, but also according to their beliefs about the speaker's contextual knowledge. For example, if a speaker believes that a nearby heater is operational, then they might utter "It's cold in here" as an indirect request to turn on the heater. If a comprehender knows that the heater is in fact br...