> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dust.tt/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft SharePoint Pages

> Let your agents find, read, create, edit, and publish SharePoint site pages.

With the Microsoft SharePoint Pages tool, your agents can search your SharePoint intranet, news, and wiki pages, then create or edit them block by block. An admin connects it once, then each person signs in with their own Microsoft account.

## What your agent can do in SharePoint Pages

| Action | What it does | Changes data |
| - | - | - |
| **List SharePoint Pages** | Lists the pages of a site, with their title, URL, and publication state (draft or published). | No |
| **Search Site Pages** | Searches pages by keyword across all the sites you can access, or in one site. | No |
| **Get SharePoint Page** | Reads a page: sections, columns, blocks (web parts), text, publication state, and custom columns. | No |
| **Create SharePoint Page** | Creates a page in a site as an unpublished draft. | Yes |
| **Update Page Properties** | Changes the title, description, header layout, comments setting, and custom columns. | Yes |
| **Add Page Section** / **Update Page Section** / **Delete Page Section** | Adds, changes, or removes a section of the page layout. | Yes |
| **Add Page Blocks** / **Update Page Block** / **Delete Page Block** | Adds, edits, or removes text, buttons, dividers, and spacers. | Yes |
| **Publish SharePoint Page** | Publishes the current draft. If the site requires approval, it submits the page for approval instead. | Yes |
| **Delete Site Page** | Deletes a page. The page goes to the site's recycle bin, where it can be restored. | Yes |

Edits stay in draft until the agent publishes the page. The list in Dust is the source of truth, and it can change before this page does.

## Before you start

* **In Dust:** you need to be an admin to connect SharePoint Pages.
* **In Microsoft:** the first connection needs a Microsoft Entra admin to consent for your organization. See [Managing Microsoft tools](https://docs.dust.tt/docs/user-documentation/admins/tools-management/managing-microsoft-tools.md).

## Connect SharePoint Pages (admins)

**1. Add the tool**

Go to **Spaces** > **Tools**, click **Add tools**, and select **Microsoft SharePoint Pages**.

**2. Sign in to Microsoft**

Sign in with your Microsoft account and approve the permissions Dust asks for.

SharePoint Pages uses **Personal accounts**: each person connects their own Microsoft account the first time an agent uses the tool. Agents can only read and edit the pages that person can read and edit in SharePoint.

## Add SharePoint Pages to an agent

**1. Open your agent in the Agent Builder**

Create an agent, or open one you can edit.

**2. Add the tool**

In **Capabilities and knowledge**, click **Add capabilities** and select **Microsoft SharePoint Pages**.

**3. Say which pages to work with**

In the instructions, name the SharePoint site the agent should use, and say whether it can publish or only prepare drafts.

By default, tools that read pages run without asking (**Never ask**), and tools that change pages ask for approval every time (**High**). Admins can change the level of each tool in **Spaces** > **Tools** > **Microsoft SharePoint Pages** > **Tools & stakes**:

* **High:** needs explicit user approval.
* **Medium:** users can save confirmations for specific tool inputs, or skip them for the rest of a conversation session.
* **Low:** users can completely disable confirmations.
* **Never ask:** runs automatically.

## Example instructions

```text theme={null}
When I share release notes, create a draft news page on the "Product" SharePoint site with a title, a short intro, and one section per feature. Don't publish it: send me the page link so I can review it.
```

## SharePoint Pages permissions

| Feature | Scopes |
| - | - |
| Read pages | `Sites.Read.All` |
| Create, edit, publish, and delete pages | `Sites.ReadWrite.All` |
| Sign in | `User.Read`, `offline_access` |

## Related

> [card] [Managing Microsoft tools](https://docs.dust.tt/docs/user-documentation/admins/tools-management/managing-microsoft-tools.md)
>
> Set up Microsoft tools and admin consent.

> [card] [Microsoft SharePoint and OneDrive](https://docs.dust.tt/docs/user-documentation/agents/tools/microsoft-sharepoint-and-onedrive.md)
>
> Search, read, and upload files.

> [card] [Tools](https://docs.dust.tt/docs/user-documentation/agents/tools/index)
>
> All the tools your agents can use.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.