Naar de inhoud
Alle hulpmiddelen

sharepoint_read_file

SharePoint · Windows

Effect: lezen. Status: voorwaardelijk beschikbaar.

‘Voorwaardelijke beschikbaarheid’ betekent dat het hulpmiddel kan afhangen van versie, platform, machtigingen, account of configuratie. Het is niet in elke installatie actief.

Windows

Doel

Leest een tekstbestand uit een SharePoint-documentbibliotheek: `library` uit sharepoint_list_files, `file` het pad erin (zoals Reports/summary.txt). Antwoordt {"file": …, "content": …}.

Vereiste invoer

De namen blijven exact zoals het hulpmiddel ze vereist. De canonieke technische definities in het Engels staan in het uitklapbare schema hieronder.

Machtigingen en bevestiging

Het schema bevat geen expliciete bevestigingsparameter. Dit geeft geen toestemming om te handelen; controleer het effect en vraag autorisatie.

Canoniek technisch schema in het Engels — 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"
}

Documentatievoorbeeld

Documentatievoorbeeld voor sharepoint_read_file. Voer dit voorbeeld niet uit. De getoonde argumenten verwijzen naar fictieve gegevens; zoek vóór een echte aanroep de werkelijke identificatoren op en vraag toestemming.

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