本文へスキップ
すべてのツール

sharepoint_read_file

SharePoint · Windows

効果: 読み取り. 状態: 条件付き提供.

「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。

Windows

目的

SharePoint のドキュメントライブラリからテキストファイルを読み取ります。`library` は sharepoint_list_files から得たもの、`file` はその中のパスです(Reports/summary.txt のような形式)。{"file": …, "content": …} を返します。

必須入力

入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。

権限と確認

スキーマには明示的な確認パラメータがありません。これは無許可の操作を認めるものではありません。効果を確認し、承認を得てください。

英語の正規技術スキーマ — 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"
}

ドキュメント例

sharepoint_read_file のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。

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