> ## 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

> Downloads and returns the text content of a OneDrive file.

`onedrive_get_file_content`

Downloads and returns the text content of a OneDrive file. Best suited for plain-text formats: `.txt`, `.csv`, `.json`, `.xml`, `.md`. Large files are automatically truncated. Get the `item_id` from `onedrive_list_items`, `onedrive_search_files`, or `onedrive_list_recent`.

## Parameters

| Parameter   | Type   | Required | Description                                                |
| ----------- | ------ | -------- | ---------------------------------------------------------- |
| `item_id`   | string | Yes      | Item ID of the file to download.                           |
| `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 `onedrive_search_files` to locate a more targeted excerpt.
</Warning>

## Example use

> "Read the contents of the project plan CSV in my OneDrive."
