FruxonDocs

Microsoft OneDrive

Microsoft OneDrive integration for browsing, searching, uploading, and managing files via Microsoft Graph

The Microsoft OneDrive integration lets your agents browse, search, upload, share, and manage files and folders in a connected Microsoft 365 account through the Microsoft Graph API.

Prerequisites

  • A Microsoft 365 or personal Microsoft account with the OneDrive you want the agent to access.
  • Permission to authorize third-party apps in your tenant. Some organizations require admin consent for the Files.* scopes.

Setup

  1. Open Integrations from the sidebar

  2. Select Microsoft OneDrive from the catalog

  3. Click Add Integration Config

  4. Give the config a display name (e.g., "OneDrive — Ops").

  5. Click Connect and complete the Microsoft sign-in.

  6. In the OAuth scope picker, choose which Graph permissions to grant. Each scope is requested independently:

    ScopeRequired forRecommended
    Read your files (Files.Read)Browsing, searching, and reading your own files (read-only)Yes
    Edit your files (Files.ReadWrite)Creating folders, uploading, sharing, deletingIf the agent writes
    Read all shared files (Files.Read.All)Reading files others shared with youOptional
    Edit all shared files (Files.ReadWrite.All)Editing files others shared with youOptional
    Read user profile (User.Read)Identifying the connected accountOptional
    Stay connected (offline_access)Background refresh so users aren't repromptedYes

    Read-only tools accept either the read or the read/write scope — so you can grant the narrower Files.Read when the agent never writes.

  7. Grant only what the agent actually needs — the OAuth picker lets you uncheck scopes you don't want exposed.

  8. Save the config

Connection testing is available — click Test on the saved config to verify the credentials and granted scopes against Microsoft Graph before deploying.

Using in Your Agent

  1. Open your agent in Agent Studio and select an Agent Step
  2. Under Attached Integration Configurations, click Attach configuration and choose your config
  3. Attach OneDrive tools from the tools panel
  4. Tools are referenced as onedrive.list_items, onedrive.search_items, etc.

Start at the drive root with item ID root, or jump straight to a known file with Get File or Folder by Path. get_item returns a temporary download URL in the @microsoft.graph.downloadUrl field.

Available Tools

ToolDescriptionAction Type
list_itemsList files and folders in a folderReadOnly
get_itemGet file/folder metadata and download URLReadOnly
get_item_by_pathGet a file or folder by its pathReadOnly
search_itemsSearch files by name or contentReadOnly
list_shared_with_meList files shared with the accountReadOnly
create_folderCreate a folderReversible
upload_text_fileCreate or replace a small text fileReversible
create_share_linkCreate a view/edit sharing linkReversible
delete_itemDelete a file or folder (to recycle bin)Irreversible

On this page