OneDrive
Shanone’s OneDrive integration gives your agent 87 tools spanning everyday file management, SharePoint site access, and the Microsoft 365 governance tools (retention labels, sensitivity labels, delta sync) most integrations leave out.Getting Started
1
Connect via OAuth
Ask your agent to do something with OneDrive (e.g. “find the latest version of the Q3 budget spreadsheet”), or connect proactively from Integrations in the Shanone dashboard.
2
Authorize the Microsoft account
Approve Microsoft’s OAuth consent screen for the account whose OneDrive and SharePoint sites Shanone should access.
3
Retry your request
Once connected,
shanone_execute_tool calls for onedrive_* tools will succeed.Available Tools
Shanone provides 87 tools for OneDrive, organized into these categories:Files
Files
onedrive_get_file_info, onedrive_download_file, onedrive_upload_file, onedrive_delete_file, onedrive_move_file, onedrive_copy_file, onedrive_search_files, onedrive_download_file_by_path, onedrive_create_upload_session, onedrive_download_as_format, onedrive_update_metadata, onedrive_rename_item, onedrive_follow_item, onedrive_unfollow_item, onedrive_preview_itemFolders
Folders
onedrive_list_root, onedrive_list_folder, onedrive_create_folder, onedrive_delete_folder, onedrive_get_special_folder, onedrive_list_special_folder, onedrive_get_recent, onedrive_get_root_children, onedrive_list_followedVersions & recycle bin
Versions & recycle bin
onedrive_list_versions, onedrive_get_version, onedrive_download_version, onedrive_restore_version, onedrive_restore_item, onedrive_permanent_delete, onedrive_list_recycle_bin_itemsSync & subscriptions
Sync & subscriptions
onedrive_get_delta, onedrive_get_delta_by_token, onedrive_create_subscription, onedrive_list_subscriptions, onedrive_delete_subscription, onedrive_update_subscription, onedrive_get_subscriptionCollaboration & bundles
Collaboration & bundles
onedrive_checkout, onedrive_checkin, onedrive_discard_checkout, onedrive_get_publication_status, onedrive_list_bundles, onedrive_get_bundle, onedrive_create_bundle, onedrive_add_item_to_bundle, onedrive_remove_item_from_bundle, onedrive_update_bundle, onedrive_delete_bundleGovernance & compliance
Governance & compliance
onedrive_get_retention_label, onedrive_set_retention_label, onedrive_remove_retention_label, onedrive_lock_unlock_record, onedrive_extract_sensitivity_labels, onedrive_assign_sensitivity_labelAnalytics & thumbnails
Analytics & thumbnails
onedrive_get_analytics, onedrive_get_activities, onedrive_list_drive_activities, onedrive_get_activity_stats, onedrive_get_thumbnails, onedrive_get_thumbnail, onedrive_get_thumbnail_content, onedrive_get_my_drive, onedrive_get_drive_infoCommon Use Cases
Cross-team file sharing
Find a document, generate a sharing link, and grant access to specific collaborators
SharePoint site search
Search across connected SharePoint sites and libraries to locate the latest version of a document
Compliance & retention audits
Check retention labels and sensitivity labels applied to sensitive files across a drive
Version recovery
List a file’s version history and restore a previous version after an unwanted edit
Troubleshooting
onedrive_upload_file fails for larger files
onedrive_upload_file fails for larger files
Microsoft Graph’s simple upload endpoint tops out around 4MB. For anything larger, use
onedrive_create_upload_session to start a resumable upload session instead.onedrive_get_delta suddenly returns a resync-required error
onedrive_get_delta suddenly returns a resync-required error
Delta tokens can expire or be invalidated server-side. Call
onedrive_get_delta without a token to restart the sync loop, then persist the new token from the response for subsequent onedrive_get_delta_by_token calls.onedrive_delete_file doesn't seem to free up space
onedrive_delete_file doesn't seem to free up space
Deleted items move to the recycle bin first. Use
onedrive_list_recycle_bin_items to confirm, and onedrive_permanent_delete if you need to remove them for good.