OneDrive Set Scope
onedrive_set_scopeLimits LMCP's access to one OneDrive to a single folder. Once set, every LMCP tool that reads, lists, searches, writes, deletes or moves files — the onedrive_* tools and the general file tools alike — refuses any path in that OneDrive outside the folder, including the OneDrive's own top level; searches only return what is inside it. If the folder is later moved or deleted, that OneDrive is closed until the limit is changed. Pass an empty folder to remove the limit. Changes take effect immediately.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"root_name": "<root_name>"
},
"name": "onedrive_set_scope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Allowed folder path relative to the root (e.g. '/000-Claude Personal Agent'). Empty string removes the scope. | |
| root_name | Yes | OneDrive root name (from onedrive_root, e.g. 'OneDrive-WPPCloud') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| access | No | ||
| effect | No | ||
| scope_set | No | ||
| scope_removed | No | ||
| allowed_folder | No |