Skip to main content

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:
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_item
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_followed
onedrive_create_sharing_link, onedrive_grant_permission_to_link, onedrive_get_shared_drive_item, onedrive_list_link_permissions, onedrive_list_permissions, onedrive_get_permission, onedrive_update_permission, onedrive_delete_permission, onedrive_invite_user, onedrive_get_shared_item, onedrive_list_shared_with_me
onedrive_list_versions, onedrive_get_version, onedrive_download_version, onedrive_restore_version, onedrive_restore_item, onedrive_permanent_delete, onedrive_list_recycle_bin_items
onedrive_get_delta, onedrive_get_delta_by_token, onedrive_create_subscription, onedrive_list_subscriptions, onedrive_delete_subscription, onedrive_update_subscription, onedrive_get_subscription
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_bundle
onedrive_get_site, onedrive_list_site_drives, onedrive_get_site_drive, onedrive_list_site_lists, onedrive_get_group_drive, onedrive_search_sites, onedrive_list_site_subsites, onedrive_list_site_columns, onedrive_get_site_page_content, onedrive_get_sharepoint_list_items, onedrive_list_sharepoint_list_items_delta, onedrive_list_site_drive_items_delta
onedrive_get_retention_label, onedrive_set_retention_label, onedrive_remove_retention_label, onedrive_lock_unlock_record, onedrive_extract_sensitivity_labels, onedrive_assign_sensitivity_label
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_info

Common 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

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.
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.
Most onedrive_* SharePoint tools require a specific site or drive ID — start with onedrive_search_sites or onedrive_get_site to resolve the right site, and confirm the connected Microsoft account actually has access to it.
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.