files_get_content
Extract text content from OneDrive or SharePoint files using drive and item IDs. Supports Office documents and PDFs; binary files return a placeholder. Set a character limit to control output length.
Instructions
Read the text content of a file in OneDrive or SharePoint, given a drive id and item id from files_search or files_list_recent. Works for text, Office documents and PDFs; binary files return a placeholder instead of bytes. Output is truncated to a caller-specified character limit. Requires Files.Read.All.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | The file item ID | |
| drive_id | Yes | The OneDrive/SharePoint drive ID | |
| max_chars | No | Maximum characters of content to extract |