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

# Microsoft OneNote Integration: Notebooks for Agents

> Agents can read and manage notebooks, sections, and pages in Microsoft OneNote. OAuth credentials are injected automatically.

## Overview

OneCLI connects AI agents to Microsoft OneNote through Microsoft's OAuth flow. Agents can read notebooks, sections, and pages, create new pages, and edit existing content. The gateway injects OAuth credentials into requests to the Microsoft Graph API automatically.

<Note>
  Microsoft OneNote is a cloud-only integration, available on the Team plan.
</Note>

## Setup

<Steps>
  <Step title="Go to Connections">
    Open the OneCLI dashboard and navigate to **Connections** > **Microsoft OneNote**.
  </Step>

  <Step title="Authorize">
    Click **Connect Microsoft OneNote**. You'll be redirected to Microsoft to sign in and authorize OneCLI. Review the requested permissions and click **Accept**.
  </Step>

  <Step title="Verify">
    After authorization, you'll be redirected back to the dashboard. The connection will show as **Connected** with your Microsoft account email.
  </Step>
</Steps>

## What agents can do

| Area                       | Description                                           |
| -------------------------- | ----------------------------------------------------- |
| **Read notebooks**         | View your OneNote notebooks, sections, and pages      |
| **Read & write notebooks** | View, create, and edit notebooks, sections, and pages |
| **Create pages**           | Create new pages in your OneNote notebooks            |

## Use cases

* Note-taking agents that create meeting notes from transcripts
* Research agents that organize findings into structured notebooks
* Agents that search across notebooks for relevant information
* Content agents that create and update documentation in OneNote

## Controlling access with rules

Use OneCLI's [rules engine](/guides/rules) to control what agents can do. For example, allow reading notebooks but block creating or editing pages. Rules are evaluated before credential injection, so a blocked request never reaches the Microsoft Graph API.
