sharepoint_read_file
SharePoint · Windows
效果: 读取. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
Windows
用途
从 SharePoint 文档库读取文本文件:`library` 来自 sharepoint_list_files,`file` 是其在库内的路径(如 Reports/summary.txt)。答复 {"file": …, "content": …}。
必填输入
libraryfile
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — 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"
}