> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcellm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# File Reader

Reads a file and returns its content as plain text.

## Parameters

<ParamField body="filePath" type="string" required>
  An absolute path to a file on your disk.

  ```mdx Example path theme={null}
  C:\Users\username\Documents\report.pdf
  ```

  Supports extensions: c, cpp, cs, csv, cxx, h, hxx, html, java, json, jsonl, md, pdf, php, py, rb, txt, and xml.
</ParamField>

## Returns

<ResponseField name="content" type="string">
  The content of the file as plain text.
</ResponseField>

<Info>
  This tool is automatically used by the AI model when needed. You enable it in Cellm's ribbon menu, then simply ask the model to perform tasks that require reading files (e.g., "Summarize the content of report.pdf in my Documents folder").
</Info>

<RequestExample>
  ```excel Read and summarize theme={null}
  =PROMPT("Read and summarize C:\Users\username\Documents\report.pdf")
  ```
</RequestExample>

<ResponseExample>
  ```excel With cell reference theme={null}
  =PROMPT("Read and summarize this file", A1)
  ```

  Where A1 contains: `C:\Users\username\Documents\report.pdf`
</ResponseExample>
