Skip to navigation

SharePoint

Connect your AI agents to SharePoint.
Ready to connect

Connects with credentials the end user enters, such as an API key, so you don’t need to register an OAuth app.

Authentication: OAuth or access token. See Magic Link for the runtime auth flow, or Application credentials to bring your own OAuth app.

Sample use cases

  • Find files in the Sales / Proposals library modified in the last 7 days.
  • Share the Q2 Onboarding site with view-only access to onboarding@acme.com.
  • List documents on the Engineering site last edited over 90 days ago.

Available Tools

files_list_drive_items

List all files and folders in a SharePoint document library folder. Requires driveId (from sites_list_drives). Defaults to root folder. Supports OData filter, orderby, and pagination via top/skip

files_get_drive_item

Get detailed information about a specific file or folder. Requires driveId (from sites_list_drives) and itemId

files_create_folder

Create a new folder in a SharePoint document library. Requires driveId (from sites_list_drives) and parentId

files_upload_item

Upload a new file to a SharePoint document library. Requires drive_id (from sites_list_drives) and a filename. Provide content inline or a file_reference for larger files

files_update_item

Update file or folder name or description. Requires driveId (from sites_list_drives) and itemId

files_delete_item

Delete a file or folder from a SharePoint document library. Requires driveId (from sites_list_drives) and itemId

files_search_drive_items

Search for files and folders in a SharePoint document library by query text. Requires driveId (from sites_list_drives) and query

files_search_all

Search for files across ALL SharePoint sites and OneDrive.

list_items_get_all

Get all items from a SharePoint list. Requires siteId and listId. Use sites_list_lists to find list IDs. Supports OData filter, expand, orderby, and pagination via top/skip

list_items_get_by_id

Get a specific SharePoint list item by ID. Requires siteId, listId (from sites_list_lists), and itemId

list_items_create

Create a new item in a SharePoint list. Requires siteId, listId (from sites_list_lists), and fields object. Use list_get_columns to discover available fields

list_items_update

Update an existing SharePoint list item. Requires siteId, listId (from sites_list_lists), itemId, and fields to update

list_items_delete

Delete a SharePoint list item. Requires siteId, listId (from sites_list_lists), and itemId

list_get_columns

Get all columns/fields for a SharePoint list. Requires siteId and listId (from sites_list_lists). Use before list_items_create to discover available fields

sites_create_list

Create a new SharePoint list. Requires siteId (from sites_get_root or sites_get_by_hostname). Optionally provide columns and list template

lists_get_by_id

Get a SharePoint list by ID. Requires siteId and listId (from sites_list_lists)

lists_get_by_title

Get a SharePoint list by its display title. Requires siteId and listTitle

lists_update

Update a SharePoint list’s display name or description. Requires siteId and listId (from sites_list_lists)

lists_delete

Delete a SharePoint list and all its items. Requires siteId and listId (from sites_list_lists)

lists_list_columns

List all columns in a SharePoint list. Requires siteId and listId (from sites_list_lists). Use to discover field names before creating items

lists_create_column

Create a new column in a SharePoint list. Requires siteId, listId (from sites_list_lists), column name, and column_type

lists_update_column

Update a column’s display name, description, or required flag. Requires siteId, listId, and columnId (from lists_list_columns)

lists_delete_column

Delete a column from a SharePoint list. Requires siteId, listId, and columnId (from lists_list_columns)

sites_get_root

Get the organization’s default SharePoint root site. Returns siteId needed by other tools. Call this first to discover available sites

sites_get_by_id

Get a specific SharePoint site by ID. Requires siteId (from sites_get_root or sites_get_by_hostname)

sites_get_by_hostname

Get a SharePoint site by hostname (e.g. contoso.sharepoint.com). Returns siteId needed by other tools

sites_get_by_path

Get a SharePoint site by hostname and server-relative path. Returns siteId needed by other tools

sites_get_group_root

Get a Microsoft 365 group’s team site. Requires groupId. Returns siteId needed by other tools

sites_update

Update a SharePoint site’s display name or description. Requires siteId (from sites_get_root or sites_get_by_hostname)

sites_list_drives

List all document libraries (drives) for a SharePoint site. Requires siteId. Returns driveId values needed by files_* tools

sites_list_lists

List all lists in a SharePoint site. Requires siteId. Returns listId values needed by list_items_* and list_get_columns tools

sites_list_columns

List site-level columns for a SharePoint site. Requires siteId (from sites_get_root or sites_get_by_hostname)

files_download_item

Download a file’s raw bytes from SharePoint as UTF-8 text or base64, capped at 10 MB; return_download_url=true gives a short-lived URL for larger files.

files_read_item_text

Read a SharePoint file’s contents as text.