onedrive_read_file
Read file contents from OneDrive, extracting text from documents, PDFs, spreadsheets, and presentations. Specify a file path to retrieve its content for further processing.
Instructions
Read the contents of a file from OneDrive.
Supports:
Text files (.txt, .md, .csv, .json, etc.)
PDFs (text extracted)
Word documents (.docx)
Excel spreadsheets (.xlsx) - exported as CSV-like format
PowerPoint presentations (.pptx)
Args: file_path: Path to the file (e.g., "Documents/report.pdf" or "Stock Investor Accelerator/notes.txt") max_chars: Maximum characters to return (default: 100000)
Discovery: use onedrive_search, onedrive_list_root, or onedrive_list_folder first to find the exact file_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |