onedrive_set_scope
OneDrive · macOS · Windows
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
macOS
用途
将 LMCP 对某个 OneDrive 的访问限制在单个文件夹内。设置后,所有读取、列出、搜索、写入、删除或移动文件的 LMCP 工具(onedrive_* 工具和通用文件工具皆然)都会拒绝该 OneDrive 中该文件夹之外的任何路径,包括该 OneDrive 自身的顶层;搜索只返回其内部的内容。如果该文件夹之后被移动或删除,该 OneDrive 会保持关闭,直到更改限制。传入空的 folder 可移除限制。更改立即生效。
必填输入
root_name
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — macOS
{
"properties": {
"folder": {
"description": "Allowed folder path relative to the root (e.g. '/000-Claude Personal Agent'). Empty string removes the scope.",
"type": "string"
},
"root_name": {
"description": "OneDrive root name (from onedrive_root, e.g. 'OneDrive-WPPCloud')",
"type": "string"
}
},
"required": [
"root_name"
],
"type": "object"
}文档示例
onedrive_set_scope 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"folder": "Documents",
"root_name": "OneDrive-Demo"
}Windows
用途
出于安全考虑,将 LMCP 的 OneDrive 访问范围限制到特定文件夹。
必填输入
此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — Windows
{
"properties": {
"confirm": {
"description": "Ignored; kept for older clients.",
"type": "boolean"
},
"folder": {
"description": "Allowed folder path relative to the root. Empty string removes the scope restriction.",
"type": "string"
},
"root_name": {
"description": "OneDrive root name. Accepted for compatibility with the cloud catalog's schema; this server has a single root and ignores it.",
"type": "string"
}
},
"type": "object"
}文档示例
onedrive_set_scope 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"confirm": false,
"folder": "Documents"
}