Skip to content
Changelog

Report a bug

Microsoft OneDrive integration: operations for AI agents

Microsoft OneDrive connects to Type.com as an integration. This page lists the 17 operations documented for Claude and Codex in Type.com: 7 read, 4 write, 6 destructive.

About Microsoft OneDrive

Search, read, upload, organize and share files in your OneDrive, and edit worksheets and ranges in Excel workbooks stored there.

Categories: File management & storage, Spreadsheets

How to connect Microsoft OneDrive to Type.com

Connect
Sign in with Microsoft (OAuth)
Access
Personal connection: each person connects their own account.

To add the connection, follow the steps in Space connections.

Documented operations

17 operations. Your connection's permissions determine which operations are available.

  • Read

    Onedrive download file

    Download a OneDrive file into Type file delivery so it can be materialized in the managed runtime sandbox without inlining the bytes.

  • Read

    Onedrive get file

    Get metadata for a OneDrive file or folder by DriveItem ID.

  • Read

    Onedrive get file text

    Download a text-readable OneDrive file by DriveItem ID and return its text content.

  • Read

    Onedrive get workbook worksheet

    Get a worksheet by ID or name from an Excel workbook stored in OneDrive.

  • Read

    Onedrive list files

    List files and folders under the OneDrive root or a specific folder item ID.

  • Read

    Onedrive list workbook worksheets

    List worksheets in an Excel workbook stored in OneDrive. Excel workbook APIs require a OneDrive for Business workbook in Office Open XML format.

  • Read

    Onedrive search files

    Search files and folders in the connected user's OneDrive by query text.

  • Write

    Onedrive add workbook worksheet

    Add a worksheet to an Excel workbook stored in OneDrive. The worksheet is added at the end of the workbook.

  • Write

    Onedrive create folder

    Create a folder in the connected user's OneDrive root or under a specific folder item ID.

  • Write

    Onedrive upload file

    Upload a new file to the connected user's OneDrive root or a specific folder item ID. Supports text content and base64-encoded binary files such as spreadsheets.

  • Destructive

    Onedrive delete item

    Delete a OneDrive file or folder by DriveItem ID. Microsoft Graph moves deleted items to the recycle bin.

  • Destructive

    Onedrive delete workbook worksheet

    Delete a worksheet by ID or name from an Excel workbook stored in OneDrive.

  • Destructive

    Onedrive move item

    Move a OneDrive file or folder to another folder item ID, optionally renaming it.

  • Destructive

    Onedrive update file content

    Replace the content of an existing OneDrive file by DriveItem ID. Supports text content and base64-encoded binary files.

  • Destructive

    Onedrive update workbook range

    Update cell values, formulas, number formats, or row/column hidden state for a range in an Excel workbook stored in OneDrive.

  • Destructive

    Onedrive update workbook worksheet

    Update worksheet metadata in an Excel workbook stored in OneDrive, such as name, position, or visibility. Use onedrive_update_workbook_range to edit cell values.

Not supported

  • SharePoint document libraries outside your OneDrive
  • Excel workbook editing on personal (non-business) OneDrive accounts
  • Changing permissions on existing sharing links

Example prompts

  • Find the 2026 budget workbook in my OneDrive and add a Q4 worksheet.
  • Upload this CSV to my Reports folder and give me a sharing link.

Get started

  1. Open Space settings → Connections and search for Microsoft OneDrive.
  2. Connect your account and add the connection to the Space.
  3. Ask for what you need in any thread in that Space.

See How connections work for access and permissions, or browse all integrations.