View as Markdown
Microsoft OneNote icon

Microsoft OneNote ACTION

Get Page Content

Retrieve the body content of a OneNote page as HTML or Markdown. Use Get Page for the page's metadata (title, parent section, URLs, timestamps); use this action when you need the actual page content. Use Search Pages first to resolve a page name to a pageId. Set convertToMarkdown to true for cleaner, more compact output (recommended when the consumer is an LLM). Set includeIDs to true if you need element IDs for a later update operation. Note: combining includeIDs with convertToMarkdown may strip data-id attributes during conversion. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Microsoft OneNote account once, then configure and run Get Page Content from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "onenote-get-page-content",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    onenote: { authProvisionId: "apn_xxxxxxx" },
    pageId: "Page ID",
    includeIDs: true,
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Get Page Content inputs
Property Type Description
pageId Page ID string
The page ID
Required Dynamic
includeIDs Include Element IDs boolean
When true, the returned HTML includes data-id attributes on elements. Required for later update operations targeting specific elements on the page. Default false.
Optional
convertToMarkdown Convert to Markdown boolean
When true, the HTML content is converted to Markdown before being returned. Recommended when the consumer is an LLM. Default false (returns raw HTML).
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
onenote-get-page-content
Version
0.0.2
App
Microsoft OneNote
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes