read_text_file
Read UTF-8 or BOM-marked UTF-16 text from SharePoint or OneDrive with a configurable byte cap (default 256 KiB). Use for text files; download binary files separately.
Instructions
Read UTF-8 or BOM-marked UTF-16 text up to the original byte cap. Downloads at most max_bytes (default 256 KiB). Use download_file for binary files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_text_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| site | No | ||
| drive | No | ||
| item_id | No | ||
| max_bytes | No |