m365_files_read
Read text file content from Microsoft 365 OneDrive by item ID, with an optional byte limit up to 1 MB. Use it to retrieve file contents for processing or display.
Instructions
Read a file's content (text files only, max 50KB by default)
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": {
"itemId": "<itemId>"
},
"name": "m365_files_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | File item ID from list/search | |
| maxBytes | No | Max bytes to read (default 50000; maximum 1000000) |