El catálogo/OneNote

OneNote

app.microsoft.onenote

Read, write, and search OneNote notebooks, sections, and pages

OAuth 2productivityLeer el código↗
Versión1.0.2
Categoríaproductivity
AutenticaciónOAuth 2
Herramientas15
Transportestdio
LicenciaMIT
01

Qué hace

La aplicación, en sus propias palabras.

Microsoft OneNote automation — browse notebooks and sections, read and write pages as markdown, and search notes via the Microsoft Graph OneNote API.

onenotenotesnotebookmicrosoftoffice365markdown
02

Herramientas

15 herramientas que el agente puede llamar.

Todas se declaran con parámetros tipados y devuelven resultados estructurados, así que el anfitrión puede renderizarlas en vez de narrarlas.

  • append-to-pageAdd content to an existing OneNote page without removing anything. Appends to the end of the page by default; pass a target element id from get-page-content (includeIDs: true) to add next to a specific element.
  • copy-page-to-sectionCopy a OneNote page into another section, including across notebooks. Waits for the copy to finish and returns the new page id.
  • create-notebookCreate a new OneNote notebook. Names may not contain ? * \ / : < > | ' " # and are limited to 50 characters.
  • create-pageCreate a OneNote page in a section. Content is markdown by default and is converted to the HTML OneNote stores.
  • create-sectionCreate a section inside a OneNote notebook. Names may not contain ? * \ / : < > | ' " # and are limited to 50 characters.
  • delete-pageDelete a OneNote page. The page goes to the notebook recycle bin, but this cannot be undone from here.
  • get-notebookGet one OneNote notebook by id, with its name, sharing state, and web URL.
  • get-pageGet one OneNote page by id: its title, timestamps, position, and parent section. Use get-page-content to read the page body.
  • get-page-contentRead the body of a OneNote page. Returns markdown by default. Set includeIDs to get the element ids that append-to-page and replace-page-content can target — that always returns HTML, because markdown cannot carry the ids.
  • list-notebooksList every OneNote notebook the signed-in account can open, including shared ones.
  • list-pagesList OneNote pages, newest first. Scoped to one section when sectionId is given, otherwise across every notebook. Returns metadata only — use get-page-content to read a page.
  • list-section-groupsList OneNote section groups — the folders that hold sections inside a notebook. Scoped to one notebook when notebookId is given.
  • list-sectionsList OneNote sections. Scoped to one notebook when notebookId is given, this returns only that notebook's top-level sections — sections nested inside a section group are not included. Omit notebookId to list every section the account can reach, section groups included.
  • replace-page-contentReplace the content of a OneNote page, or just its title. This overwrites what was there and cannot be undone — use append-to-page to add without removing.
  • search-pagesSearch OneNote pages by text. Results may not be exhaustive — OneNote search coverage varies by account type, and this falls back to matching page titles when full-text search is unavailable. Use list-pages to browse a section reliably.
03

Autenticación y permisos

Qué pide.

Declarado en el manifiesto y por adelantado. La aplicación no puede alcanzar nada que no haya pedido aquí.

Permisos

openidprofileemailoffline_accessUser.ReadNotes.ReadWrite.AllNotes.Create

Secretos de sistema

CLIENT_IDCLIENT_SECRETREDIRECT_URI

Secretos de instalación

ACCESS_TOKENREFRESH_TOKENEMAILEXPIRY_DATE

Seguir leyendo

El manifiesto y el código de OneNote están en el repositorio, junto al resto de apps.

Leer el código↗Volver al catálogo→

OneNote · Agent Apps