Read a file's contents from OneDrive
read_onedrive_fileOpen one file and return what is in it. Text, CSV, JSON, HTML and code files come back as themselves; images come back as pictures the assistant can look at (a large photo, or a HEIC or TIFF, is scaled down to a JPEG; images up to 25 MB); a PDF comes back whole as a document (an embedded application/pdf resource) for the assistant to read, up to 10 MB. Word documents (.docx) come back as their text, with headings, lists and tables. Excel workbooks are refused in favour of read_excel_range. Get the id from list_onedrive_items or search_onedrive_items.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mailbox": "<mailbox>",
"itemId": "<itemId>"
},
"name": "read_onedrive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | ||
| mailbox | Yes | Email address of the connected Outlook/Microsoft 365 mailbox to act on. Call list_authorized_mailboxes to see available options. |