Skip to content
All tools

sharepoint_read_file

SharePoint · 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.

Windows

Purpose

Reads a text file from a SharePoint document library: `library` from sharepoint_list_files, `file` its path inside it (like Reports/summary.txt). Answers {"file": …, "content": …}.

Required inputs

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.

Full input schema — Windows
{
  "properties": {
    "account": {
      "description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
      "type": "string"
    },
    "file": {
      "description": "The file's path inside the library, like Reports/summary.txt",
      "type": "string"
    },
    "library": {
      "description": "A library's id, from sharepoint_list_files",
      "type": "string"
    },
    "max_bytes": {
      "description": "Read at most this many bytes (default 100000)",
      "maximum": 1073741824,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "library",
    "file"
  ],
  "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.

{
  "file": "Launch plan.docx",
  "library": "Documents"
}