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

# Get File Content

`sharepoint_get_file_content`

Downloads and returns the text content of a SharePoint file. Best suited for plain-text formats: `.txt`, `.csv`, `.json`, `.xml`, `.md`. Binary formats (images, PDFs, Office files) are not supported for content extraction. Large files are automatically truncated.

## Parameters

| Parameter   | Type   | Required | Description                                                |
| ----------- | ------ | -------- | ---------------------------------------------------------- |
| `drive_id`  | string | Yes      | ID of the drive containing the file.                       |
| `item_id`   | string | Yes      | Item ID of the file to read.                               |
| `max_chars` | number | No       | Maximum characters to return (100–25,000, default 10,000). |

## Returns

An object with:

* `content` — the extracted text
* `truncated` — `true` if the file was cut off at `max_chars`
* `length` — the number of characters returned

<Warning>
  If `truncated` is `true`, only a portion of the file was returned. Increase `max_chars` (up to 25,000) or use `sharepoint_search_files` to locate a more targeted excerpt.
</Warning>

## Example use

> "Read the contents of the Q3 budget CSV in the Finance library."
