onedrive_read_file
OneDrive · macOS · Windows
Effect: read (strongest supported action). Status: gated.
Gated means the tool requires an installed app, a connected account, permission, or runtime availability. Check those requirements on the listed platform before using it.
macOS
Purpose
Reads a text file from your OneDrive synced folder. Supports .txt, .md, .csv, .json, .xml, .log and several code file types. Auto-detects UTF-8, falls back to Latin-1/Windows-1252 for legacy files (common in Latin American banking .TXT padrones). For files elsewhere on this Mac, use file_read.
Required inputs
path— Absolute path to the file
Permissions and confirmation
No explicit confirmation parameter is exposed in this snapshot. This does not grant permission to act: obtain user authorization before any real action.
- Use only the apps, accounts and resources authorized by the user on this platform. Consult this tool's platform-specific description for its connection and permission requirements; this catalog does not assert additional OAuth scopes or OS entitlements.
Full input schema — macOS
{
"properties": {
"encoding": {
"description": "Force a specific encoding: 'auto' (default), 'utf8', 'latin1', 'cp1252', 'ascii', 'utf16'",
"type": "string"
},
"max_bytes": {
"description": "Maximum bytes to read (default 1048576 = 1 MB, capped at 10485760 = 10 MB)",
"type": "integer"
},
"offset": {
"description": "Start reading at byte offset (default 0)",
"type": "integer"
},
"path": {
"description": "Absolute path to the file",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}Documentation example
Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.
{
"path": "/Users/demo/OneDrive-Demo/Documents/meeting-notes.txt"
}Windows
Purpose
Reads a text file from OneDrive. Supports .txt, .md, .csv, .json, .xml, .html, .log. With a Microsoft 365 account connected it reads that account's OneDrive through Microsoft Graph, with no OneDrive app needed: paths are inside the drive (Documents/report.docx), and a local path is accepted only under that account's own OneDrive folder.
Required inputs
path— Absolute path to the file (with a Microsoft 365 account: a path inside the drive)
Permissions and confirmation
No explicit confirmation parameter is exposed in this snapshot. This does not grant permission to act: obtain user authorization before any real action.
- Use only the apps, accounts and resources authorized by the user on this platform. Consult this tool's platform-specific description for its connection and permission requirements; this catalog does not assert additional OAuth scopes or OS entitlements.
Full input schema — Windows
{
"properties": {
"force_download": {
"description": "For a cloud placeholder (online-only) bigger than 25 MB: download it and wait up to 60 s. Smaller ones are downloaded on their own.",
"type": "boolean"
},
"max_bytes": {
"description": "Maximum bytes to read (default: 100000)",
"minimum": 1,
"type": "number"
},
"path": {
"description": "Absolute path to the file (with a Microsoft 365 account: a path inside the drive)",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}Documentation example
Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.
{
"path": "Documents/meeting-notes.txt"
}