@opentabs-dev/opentabs-plugin-onenote 0.0.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/README.md +159 -0
  2. package/dist/adapter.iife.js +14878 -0
  3. package/dist/adapter.iife.js.map +7 -0
  4. package/dist/index.d.ts +14 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +47 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/onenote-api.d.ts +13 -0
  9. package/dist/onenote-api.d.ts.map +1 -0
  10. package/dist/onenote-api.js +127 -0
  11. package/dist/onenote-api.js.map +1 -0
  12. package/dist/tools/create-notebook.d.ts +26 -0
  13. package/dist/tools/create-notebook.d.ts.map +1 -0
  14. package/dist/tools/create-notebook.js +26 -0
  15. package/dist/tools/create-notebook.js.map +1 -0
  16. package/dist/tools/create-page.d.ts +16 -0
  17. package/dist/tools/create-page.d.ts.map +1 -0
  18. package/dist/tools/create-page.js +35 -0
  19. package/dist/tools/create-page.js.map +1 -0
  20. package/dist/tools/create-section-group.d.ts +25 -0
  21. package/dist/tools/create-section-group.d.ts.map +1 -0
  22. package/dist/tools/create-section-group.js +27 -0
  23. package/dist/tools/create-section-group.js.map +1 -0
  24. package/dist/tools/create-section.d.ts +25 -0
  25. package/dist/tools/create-section.d.ts.map +1 -0
  26. package/dist/tools/create-section.js +27 -0
  27. package/dist/tools/create-section.js.map +1 -0
  28. package/dist/tools/get-current-user.d.ts +12 -0
  29. package/dist/tools/get-current-user.d.ts.map +1 -0
  30. package/dist/tools/get-current-user.js +21 -0
  31. package/dist/tools/get-current-user.js.map +1 -0
  32. package/dist/tools/get-notebook.d.ts +26 -0
  33. package/dist/tools/get-notebook.d.ts.map +1 -0
  34. package/dist/tools/get-notebook.js +23 -0
  35. package/dist/tools/get-notebook.js.map +1 -0
  36. package/dist/tools/get-recent-notebooks.d.ts +12 -0
  37. package/dist/tools/get-recent-notebooks.d.ts.map +1 -0
  38. package/dist/tools/get-recent-notebooks.js +27 -0
  39. package/dist/tools/get-recent-notebooks.js.map +1 -0
  40. package/dist/tools/get-section-group.d.ts +24 -0
  41. package/dist/tools/get-section-group.d.ts.map +1 -0
  42. package/dist/tools/get-section-group.js +23 -0
  43. package/dist/tools/get-section-group.js.map +1 -0
  44. package/dist/tools/get-section.d.ts +24 -0
  45. package/dist/tools/get-section.d.ts.map +1 -0
  46. package/dist/tools/get-section.js +23 -0
  47. package/dist/tools/get-section.js.map +1 -0
  48. package/dist/tools/list-notebooks.d.ts +27 -0
  49. package/dist/tools/list-notebooks.d.ts.map +1 -0
  50. package/dist/tools/list-notebooks.js +38 -0
  51. package/dist/tools/list-notebooks.js.map +1 -0
  52. package/dist/tools/list-section-groups.d.ts +25 -0
  53. package/dist/tools/list-section-groups.d.ts.map +1 -0
  54. package/dist/tools/list-section-groups.js +38 -0
  55. package/dist/tools/list-section-groups.js.map +1 -0
  56. package/dist/tools/list-sections.d.ts +25 -0
  57. package/dist/tools/list-sections.d.ts.map +1 -0
  58. package/dist/tools/list-sections.js +35 -0
  59. package/dist/tools/list-sections.js.map +1 -0
  60. package/dist/tools/schemas.d.ts +254 -0
  61. package/dist/tools/schemas.d.ts.map +1 -0
  62. package/dist/tools/schemas.js +139 -0
  63. package/dist/tools/schemas.js.map +1 -0
  64. package/dist/tools.json +1347 -0
  65. package/package.json +55 -0
@@ -0,0 +1,1347 @@
1
+ {
2
+ "sdkVersion": "0.0.74",
3
+ "iconSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M3 4.5C3 3.672 3.672 3 4.5 3H13.5V21H4.5C3.672 21 3 20.328 3 19.5V4.5Z\" fill=\"#7719AA\"/> <path d=\"M13.5 3H19.5C20.328 3 21 3.672 21 4.5V19.5C21 20.328 20.328 21 19.5 21H13.5V3Z\" fill=\"#9B2DB8\"/> <path d=\"M7.2 7.5V16.5L9.6 11.1L12 16.5V7.5H10.5V12.3L9.6 10.2L8.7 12.3V7.5H7.2Z\" fill=\"white\"/> </svg>",
4
+ "iconInactiveSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M3 4.5C3 3.672 3.672 3 4.5 3H13.5V21H4.5C3.672 21 3 20.328 3 19.5V4.5Z\" fill=\"#999999\"/> <path d=\"M13.5 3H19.5C20.328 3 21 3.672 21 4.5V19.5C21 20.328 20.328 21 19.5 21H13.5V3Z\" fill=\"#999999\"/> <path d=\"M7.2 7.5V16.5L9.6 11.1L12 16.5V7.5H10.5V12.3L9.6 10.2L8.7 12.3V7.5H7.2Z\" fill=\"#ffffff\"/> </svg>",
5
+ "iconDarkSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M3 4.5C3 3.672 3.672 3 4.5 3H13.5V21H4.5C3.672 21 3 20.328 3 19.5V4.5Z\" fill=\"#b355e6\"/> <path d=\"M13.5 3H19.5C20.328 3 21 3.672 21 4.5V19.5C21 20.328 20.328 21 19.5 21H13.5V3Z\" fill=\"#b547d2\"/> <path d=\"M7.2 7.5V16.5L9.6 11.1L12 16.5V7.5H10.5V12.3L9.6 10.2L8.7 12.3V7.5H7.2Z\" fill=\"white\"/> </svg>",
6
+ "iconDarkInactiveSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M3 4.5C3 3.672 3.672 3 4.5 3H13.5V21H4.5C3.672 21 3 20.328 3 19.5V4.5Z\" fill=\"#999999\"/> <path d=\"M13.5 3H19.5C20.328 3 21 3.672 21 4.5V19.5C21 20.328 20.328 21 19.5 21H13.5V3Z\" fill=\"#999999\"/> <path d=\"M7.2 7.5V16.5L9.6 11.1L12 16.5V7.5H10.5V12.3L9.6 10.2L8.7 12.3V7.5H7.2Z\" fill=\"#ffffff\"/> </svg>",
7
+ "tools": [
8
+ {
9
+ "name": "list_notebooks",
10
+ "displayName": "List Notebooks",
11
+ "description": "List all OneNote notebooks for the current user. Returns notebook names, IDs, creation dates, and sharing status. Results are sorted by last modified date (newest first).",
12
+ "summary": "List all OneNote notebooks",
13
+ "icon": "book-open",
14
+ "group": "Notebooks",
15
+ "input_schema": {
16
+ "type": "object",
17
+ "properties": {
18
+ "order_by": {
19
+ "description": "OData $orderby expression (default \"lastModifiedDateTime desc\"). Examples: \"displayName\", \"createdDateTime desc\"",
20
+ "type": "string"
21
+ },
22
+ "top": {
23
+ "description": "Maximum number of notebooks to return (default 20, max 100)",
24
+ "type": "integer",
25
+ "minimum": 1,
26
+ "maximum": 100
27
+ }
28
+ },
29
+ "additionalProperties": false
30
+ },
31
+ "output_schema": {
32
+ "type": "object",
33
+ "properties": {
34
+ "notebooks": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "object",
38
+ "properties": {
39
+ "id": {
40
+ "type": "string",
41
+ "description": "Notebook ID"
42
+ },
43
+ "display_name": {
44
+ "type": "string",
45
+ "description": "Notebook name"
46
+ },
47
+ "created_at": {
48
+ "type": "string",
49
+ "description": "ISO 8601 creation timestamp"
50
+ },
51
+ "last_modified_at": {
52
+ "type": "string",
53
+ "description": "ISO 8601 last modified timestamp"
54
+ },
55
+ "is_default": {
56
+ "type": "boolean",
57
+ "description": "Whether this is the default notebook"
58
+ },
59
+ "is_shared": {
60
+ "type": "boolean",
61
+ "description": "Whether the notebook is shared"
62
+ },
63
+ "user_role": {
64
+ "type": "string",
65
+ "description": "User role (e.g., Owner, Contributor, Reader)"
66
+ },
67
+ "sections_url": {
68
+ "type": "string",
69
+ "description": "URL to list sections in this notebook"
70
+ },
71
+ "section_groups_url": {
72
+ "type": "string",
73
+ "description": "URL to list section groups in this notebook"
74
+ },
75
+ "created_by": {
76
+ "type": "object",
77
+ "properties": {
78
+ "id": {
79
+ "type": "string",
80
+ "description": "User ID"
81
+ },
82
+ "display_name": {
83
+ "type": "string",
84
+ "description": "User display name"
85
+ }
86
+ },
87
+ "required": [
88
+ "id",
89
+ "display_name"
90
+ ],
91
+ "additionalProperties": false,
92
+ "description": "User who created the notebook"
93
+ },
94
+ "last_modified_by": {
95
+ "type": "object",
96
+ "properties": {
97
+ "id": {
98
+ "type": "string",
99
+ "description": "User ID"
100
+ },
101
+ "display_name": {
102
+ "type": "string",
103
+ "description": "User display name"
104
+ }
105
+ },
106
+ "required": [
107
+ "id",
108
+ "display_name"
109
+ ],
110
+ "additionalProperties": false,
111
+ "description": "User who last modified the notebook"
112
+ },
113
+ "web_url": {
114
+ "type": "string",
115
+ "description": "URL to open the notebook in OneNote Online"
116
+ }
117
+ },
118
+ "required": [
119
+ "id",
120
+ "display_name",
121
+ "created_at",
122
+ "last_modified_at",
123
+ "is_default",
124
+ "is_shared",
125
+ "user_role",
126
+ "sections_url",
127
+ "section_groups_url",
128
+ "created_by",
129
+ "last_modified_by",
130
+ "web_url"
131
+ ],
132
+ "additionalProperties": false
133
+ },
134
+ "description": "List of notebooks"
135
+ }
136
+ },
137
+ "required": [
138
+ "notebooks"
139
+ ],
140
+ "additionalProperties": false
141
+ }
142
+ },
143
+ {
144
+ "name": "get_notebook",
145
+ "displayName": "Get Notebook",
146
+ "description": "Get detailed information about a specific OneNote notebook by its ID. Returns notebook metadata including name, creation date, sharing status, and web URL.",
147
+ "summary": "Get a notebook by ID",
148
+ "icon": "book-open",
149
+ "group": "Notebooks",
150
+ "input_schema": {
151
+ "type": "object",
152
+ "properties": {
153
+ "notebook_id": {
154
+ "type": "string",
155
+ "minLength": 1,
156
+ "description": "Notebook ID"
157
+ }
158
+ },
159
+ "required": [
160
+ "notebook_id"
161
+ ],
162
+ "additionalProperties": false
163
+ },
164
+ "output_schema": {
165
+ "type": "object",
166
+ "properties": {
167
+ "notebook": {
168
+ "type": "object",
169
+ "properties": {
170
+ "id": {
171
+ "type": "string",
172
+ "description": "Notebook ID"
173
+ },
174
+ "display_name": {
175
+ "type": "string",
176
+ "description": "Notebook name"
177
+ },
178
+ "created_at": {
179
+ "type": "string",
180
+ "description": "ISO 8601 creation timestamp"
181
+ },
182
+ "last_modified_at": {
183
+ "type": "string",
184
+ "description": "ISO 8601 last modified timestamp"
185
+ },
186
+ "is_default": {
187
+ "type": "boolean",
188
+ "description": "Whether this is the default notebook"
189
+ },
190
+ "is_shared": {
191
+ "type": "boolean",
192
+ "description": "Whether the notebook is shared"
193
+ },
194
+ "user_role": {
195
+ "type": "string",
196
+ "description": "User role (e.g., Owner, Contributor, Reader)"
197
+ },
198
+ "sections_url": {
199
+ "type": "string",
200
+ "description": "URL to list sections in this notebook"
201
+ },
202
+ "section_groups_url": {
203
+ "type": "string",
204
+ "description": "URL to list section groups in this notebook"
205
+ },
206
+ "created_by": {
207
+ "type": "object",
208
+ "properties": {
209
+ "id": {
210
+ "type": "string",
211
+ "description": "User ID"
212
+ },
213
+ "display_name": {
214
+ "type": "string",
215
+ "description": "User display name"
216
+ }
217
+ },
218
+ "required": [
219
+ "id",
220
+ "display_name"
221
+ ],
222
+ "additionalProperties": false,
223
+ "description": "User who created the notebook"
224
+ },
225
+ "last_modified_by": {
226
+ "type": "object",
227
+ "properties": {
228
+ "id": {
229
+ "type": "string",
230
+ "description": "User ID"
231
+ },
232
+ "display_name": {
233
+ "type": "string",
234
+ "description": "User display name"
235
+ }
236
+ },
237
+ "required": [
238
+ "id",
239
+ "display_name"
240
+ ],
241
+ "additionalProperties": false,
242
+ "description": "User who last modified the notebook"
243
+ },
244
+ "web_url": {
245
+ "type": "string",
246
+ "description": "URL to open the notebook in OneNote Online"
247
+ }
248
+ },
249
+ "required": [
250
+ "id",
251
+ "display_name",
252
+ "created_at",
253
+ "last_modified_at",
254
+ "is_default",
255
+ "is_shared",
256
+ "user_role",
257
+ "sections_url",
258
+ "section_groups_url",
259
+ "created_by",
260
+ "last_modified_by",
261
+ "web_url"
262
+ ],
263
+ "additionalProperties": false,
264
+ "description": "Notebook details"
265
+ }
266
+ },
267
+ "required": [
268
+ "notebook"
269
+ ],
270
+ "additionalProperties": false
271
+ }
272
+ },
273
+ {
274
+ "name": "create_notebook",
275
+ "displayName": "Create Notebook",
276
+ "description": "Create a new OneNote notebook. The notebook name must be unique across the user's notebooks. Returns the created notebook with its ID and web URL.",
277
+ "summary": "Create a new notebook",
278
+ "icon": "book-plus",
279
+ "group": "Notebooks",
280
+ "input_schema": {
281
+ "type": "object",
282
+ "properties": {
283
+ "display_name": {
284
+ "type": "string",
285
+ "minLength": 1,
286
+ "description": "Name for the new notebook (must be unique)"
287
+ }
288
+ },
289
+ "required": [
290
+ "display_name"
291
+ ],
292
+ "additionalProperties": false
293
+ },
294
+ "output_schema": {
295
+ "type": "object",
296
+ "properties": {
297
+ "notebook": {
298
+ "type": "object",
299
+ "properties": {
300
+ "id": {
301
+ "type": "string",
302
+ "description": "Notebook ID"
303
+ },
304
+ "display_name": {
305
+ "type": "string",
306
+ "description": "Notebook name"
307
+ },
308
+ "created_at": {
309
+ "type": "string",
310
+ "description": "ISO 8601 creation timestamp"
311
+ },
312
+ "last_modified_at": {
313
+ "type": "string",
314
+ "description": "ISO 8601 last modified timestamp"
315
+ },
316
+ "is_default": {
317
+ "type": "boolean",
318
+ "description": "Whether this is the default notebook"
319
+ },
320
+ "is_shared": {
321
+ "type": "boolean",
322
+ "description": "Whether the notebook is shared"
323
+ },
324
+ "user_role": {
325
+ "type": "string",
326
+ "description": "User role (e.g., Owner, Contributor, Reader)"
327
+ },
328
+ "sections_url": {
329
+ "type": "string",
330
+ "description": "URL to list sections in this notebook"
331
+ },
332
+ "section_groups_url": {
333
+ "type": "string",
334
+ "description": "URL to list section groups in this notebook"
335
+ },
336
+ "created_by": {
337
+ "type": "object",
338
+ "properties": {
339
+ "id": {
340
+ "type": "string",
341
+ "description": "User ID"
342
+ },
343
+ "display_name": {
344
+ "type": "string",
345
+ "description": "User display name"
346
+ }
347
+ },
348
+ "required": [
349
+ "id",
350
+ "display_name"
351
+ ],
352
+ "additionalProperties": false,
353
+ "description": "User who created the notebook"
354
+ },
355
+ "last_modified_by": {
356
+ "type": "object",
357
+ "properties": {
358
+ "id": {
359
+ "type": "string",
360
+ "description": "User ID"
361
+ },
362
+ "display_name": {
363
+ "type": "string",
364
+ "description": "User display name"
365
+ }
366
+ },
367
+ "required": [
368
+ "id",
369
+ "display_name"
370
+ ],
371
+ "additionalProperties": false,
372
+ "description": "User who last modified the notebook"
373
+ },
374
+ "web_url": {
375
+ "type": "string",
376
+ "description": "URL to open the notebook in OneNote Online"
377
+ }
378
+ },
379
+ "required": [
380
+ "id",
381
+ "display_name",
382
+ "created_at",
383
+ "last_modified_at",
384
+ "is_default",
385
+ "is_shared",
386
+ "user_role",
387
+ "sections_url",
388
+ "section_groups_url",
389
+ "created_by",
390
+ "last_modified_by",
391
+ "web_url"
392
+ ],
393
+ "additionalProperties": false,
394
+ "description": "Created notebook"
395
+ }
396
+ },
397
+ "required": [
398
+ "notebook"
399
+ ],
400
+ "additionalProperties": false
401
+ }
402
+ },
403
+ {
404
+ "name": "get_recent_notebooks",
405
+ "displayName": "Get Recent Notebooks",
406
+ "description": "Get recently accessed OneNote notebooks. Returns notebooks sorted by last access time, including notebooks from personal OneDrive and OneDrive for Business.",
407
+ "summary": "Get recently accessed notebooks",
408
+ "icon": "clock",
409
+ "group": "Notebooks",
410
+ "input_schema": {
411
+ "type": "object",
412
+ "properties": {
413
+ "include_personal": {
414
+ "description": "Include personal (consumer) notebooks in addition to business notebooks (default true)",
415
+ "type": "boolean"
416
+ }
417
+ },
418
+ "additionalProperties": false
419
+ },
420
+ "output_schema": {
421
+ "type": "object",
422
+ "properties": {
423
+ "notebooks": {
424
+ "type": "array",
425
+ "items": {
426
+ "type": "object",
427
+ "properties": {
428
+ "display_name": {
429
+ "type": "string",
430
+ "description": "Notebook name"
431
+ },
432
+ "last_accessed_time": {
433
+ "type": "string",
434
+ "description": "ISO 8601 timestamp of last access"
435
+ },
436
+ "source_service": {
437
+ "type": "string",
438
+ "description": "Source service (e.g., OneDriveForBusiness, OneDrive)"
439
+ },
440
+ "web_url": {
441
+ "type": "string",
442
+ "description": "URL to open the notebook in OneNote Online"
443
+ }
444
+ },
445
+ "required": [
446
+ "display_name",
447
+ "last_accessed_time",
448
+ "source_service",
449
+ "web_url"
450
+ ],
451
+ "additionalProperties": false
452
+ },
453
+ "description": "List of recently accessed notebooks"
454
+ }
455
+ },
456
+ "required": [
457
+ "notebooks"
458
+ ],
459
+ "additionalProperties": false
460
+ }
461
+ },
462
+ {
463
+ "name": "list_sections",
464
+ "displayName": "List Sections",
465
+ "description": "List OneNote sections. When a notebook_id is provided, returns only sections in that notebook. Otherwise returns all sections across all notebooks.",
466
+ "summary": "List sections in a notebook or across all notebooks",
467
+ "icon": "layers",
468
+ "group": "Sections",
469
+ "input_schema": {
470
+ "type": "object",
471
+ "properties": {
472
+ "notebook_id": {
473
+ "description": "Notebook ID to list sections for. Omit to list all sections.",
474
+ "type": "string"
475
+ },
476
+ "top": {
477
+ "description": "Maximum number of sections to return (default 20, max 100)",
478
+ "type": "integer",
479
+ "minimum": 1,
480
+ "maximum": 100
481
+ }
482
+ },
483
+ "additionalProperties": false
484
+ },
485
+ "output_schema": {
486
+ "type": "object",
487
+ "properties": {
488
+ "sections": {
489
+ "type": "array",
490
+ "items": {
491
+ "type": "object",
492
+ "properties": {
493
+ "id": {
494
+ "type": "string",
495
+ "description": "Section ID"
496
+ },
497
+ "display_name": {
498
+ "type": "string",
499
+ "description": "Section name"
500
+ },
501
+ "created_at": {
502
+ "type": "string",
503
+ "description": "ISO 8601 creation timestamp"
504
+ },
505
+ "last_modified_at": {
506
+ "type": "string",
507
+ "description": "ISO 8601 last modified timestamp"
508
+ },
509
+ "is_default": {
510
+ "type": "boolean",
511
+ "description": "Whether this is the default section"
512
+ },
513
+ "pages_url": {
514
+ "type": "string",
515
+ "description": "URL to list pages in this section"
516
+ },
517
+ "parent_notebook_id": {
518
+ "type": "string",
519
+ "description": "Parent notebook ID"
520
+ },
521
+ "parent_notebook_name": {
522
+ "type": "string",
523
+ "description": "Parent notebook display name"
524
+ },
525
+ "created_by": {
526
+ "type": "object",
527
+ "properties": {
528
+ "id": {
529
+ "type": "string",
530
+ "description": "User ID"
531
+ },
532
+ "display_name": {
533
+ "type": "string",
534
+ "description": "User display name"
535
+ }
536
+ },
537
+ "required": [
538
+ "id",
539
+ "display_name"
540
+ ],
541
+ "additionalProperties": false,
542
+ "description": "User who created the section"
543
+ },
544
+ "last_modified_by": {
545
+ "type": "object",
546
+ "properties": {
547
+ "id": {
548
+ "type": "string",
549
+ "description": "User ID"
550
+ },
551
+ "display_name": {
552
+ "type": "string",
553
+ "description": "User display name"
554
+ }
555
+ },
556
+ "required": [
557
+ "id",
558
+ "display_name"
559
+ ],
560
+ "additionalProperties": false,
561
+ "description": "User who last modified the section"
562
+ }
563
+ },
564
+ "required": [
565
+ "id",
566
+ "display_name",
567
+ "created_at",
568
+ "last_modified_at",
569
+ "is_default",
570
+ "pages_url",
571
+ "parent_notebook_id",
572
+ "parent_notebook_name",
573
+ "created_by",
574
+ "last_modified_by"
575
+ ],
576
+ "additionalProperties": false
577
+ },
578
+ "description": "List of sections"
579
+ }
580
+ },
581
+ "required": [
582
+ "sections"
583
+ ],
584
+ "additionalProperties": false
585
+ }
586
+ },
587
+ {
588
+ "name": "get_section",
589
+ "displayName": "Get Section",
590
+ "description": "Get detailed information about a specific OneNote section by its ID. Returns section metadata including name, parent notebook, and creation date.",
591
+ "summary": "Get a section by ID",
592
+ "icon": "layers",
593
+ "group": "Sections",
594
+ "input_schema": {
595
+ "type": "object",
596
+ "properties": {
597
+ "section_id": {
598
+ "type": "string",
599
+ "minLength": 1,
600
+ "description": "Section ID"
601
+ }
602
+ },
603
+ "required": [
604
+ "section_id"
605
+ ],
606
+ "additionalProperties": false
607
+ },
608
+ "output_schema": {
609
+ "type": "object",
610
+ "properties": {
611
+ "section": {
612
+ "type": "object",
613
+ "properties": {
614
+ "id": {
615
+ "type": "string",
616
+ "description": "Section ID"
617
+ },
618
+ "display_name": {
619
+ "type": "string",
620
+ "description": "Section name"
621
+ },
622
+ "created_at": {
623
+ "type": "string",
624
+ "description": "ISO 8601 creation timestamp"
625
+ },
626
+ "last_modified_at": {
627
+ "type": "string",
628
+ "description": "ISO 8601 last modified timestamp"
629
+ },
630
+ "is_default": {
631
+ "type": "boolean",
632
+ "description": "Whether this is the default section"
633
+ },
634
+ "pages_url": {
635
+ "type": "string",
636
+ "description": "URL to list pages in this section"
637
+ },
638
+ "parent_notebook_id": {
639
+ "type": "string",
640
+ "description": "Parent notebook ID"
641
+ },
642
+ "parent_notebook_name": {
643
+ "type": "string",
644
+ "description": "Parent notebook display name"
645
+ },
646
+ "created_by": {
647
+ "type": "object",
648
+ "properties": {
649
+ "id": {
650
+ "type": "string",
651
+ "description": "User ID"
652
+ },
653
+ "display_name": {
654
+ "type": "string",
655
+ "description": "User display name"
656
+ }
657
+ },
658
+ "required": [
659
+ "id",
660
+ "display_name"
661
+ ],
662
+ "additionalProperties": false,
663
+ "description": "User who created the section"
664
+ },
665
+ "last_modified_by": {
666
+ "type": "object",
667
+ "properties": {
668
+ "id": {
669
+ "type": "string",
670
+ "description": "User ID"
671
+ },
672
+ "display_name": {
673
+ "type": "string",
674
+ "description": "User display name"
675
+ }
676
+ },
677
+ "required": [
678
+ "id",
679
+ "display_name"
680
+ ],
681
+ "additionalProperties": false,
682
+ "description": "User who last modified the section"
683
+ }
684
+ },
685
+ "required": [
686
+ "id",
687
+ "display_name",
688
+ "created_at",
689
+ "last_modified_at",
690
+ "is_default",
691
+ "pages_url",
692
+ "parent_notebook_id",
693
+ "parent_notebook_name",
694
+ "created_by",
695
+ "last_modified_by"
696
+ ],
697
+ "additionalProperties": false,
698
+ "description": "Section details"
699
+ }
700
+ },
701
+ "required": [
702
+ "section"
703
+ ],
704
+ "additionalProperties": false
705
+ }
706
+ },
707
+ {
708
+ "name": "create_section",
709
+ "displayName": "Create Section",
710
+ "description": "Create a new section in a OneNote notebook. Sections contain pages and are the primary organizational unit within a notebook.",
711
+ "summary": "Create a new section in a notebook",
712
+ "icon": "layers-3",
713
+ "group": "Sections",
714
+ "input_schema": {
715
+ "type": "object",
716
+ "properties": {
717
+ "notebook_id": {
718
+ "type": "string",
719
+ "minLength": 1,
720
+ "description": "Notebook ID to create the section in"
721
+ },
722
+ "display_name": {
723
+ "type": "string",
724
+ "minLength": 1,
725
+ "description": "Name for the new section"
726
+ }
727
+ },
728
+ "required": [
729
+ "notebook_id",
730
+ "display_name"
731
+ ],
732
+ "additionalProperties": false
733
+ },
734
+ "output_schema": {
735
+ "type": "object",
736
+ "properties": {
737
+ "section": {
738
+ "type": "object",
739
+ "properties": {
740
+ "id": {
741
+ "type": "string",
742
+ "description": "Section ID"
743
+ },
744
+ "display_name": {
745
+ "type": "string",
746
+ "description": "Section name"
747
+ },
748
+ "created_at": {
749
+ "type": "string",
750
+ "description": "ISO 8601 creation timestamp"
751
+ },
752
+ "last_modified_at": {
753
+ "type": "string",
754
+ "description": "ISO 8601 last modified timestamp"
755
+ },
756
+ "is_default": {
757
+ "type": "boolean",
758
+ "description": "Whether this is the default section"
759
+ },
760
+ "pages_url": {
761
+ "type": "string",
762
+ "description": "URL to list pages in this section"
763
+ },
764
+ "parent_notebook_id": {
765
+ "type": "string",
766
+ "description": "Parent notebook ID"
767
+ },
768
+ "parent_notebook_name": {
769
+ "type": "string",
770
+ "description": "Parent notebook display name"
771
+ },
772
+ "created_by": {
773
+ "type": "object",
774
+ "properties": {
775
+ "id": {
776
+ "type": "string",
777
+ "description": "User ID"
778
+ },
779
+ "display_name": {
780
+ "type": "string",
781
+ "description": "User display name"
782
+ }
783
+ },
784
+ "required": [
785
+ "id",
786
+ "display_name"
787
+ ],
788
+ "additionalProperties": false,
789
+ "description": "User who created the section"
790
+ },
791
+ "last_modified_by": {
792
+ "type": "object",
793
+ "properties": {
794
+ "id": {
795
+ "type": "string",
796
+ "description": "User ID"
797
+ },
798
+ "display_name": {
799
+ "type": "string",
800
+ "description": "User display name"
801
+ }
802
+ },
803
+ "required": [
804
+ "id",
805
+ "display_name"
806
+ ],
807
+ "additionalProperties": false,
808
+ "description": "User who last modified the section"
809
+ }
810
+ },
811
+ "required": [
812
+ "id",
813
+ "display_name",
814
+ "created_at",
815
+ "last_modified_at",
816
+ "is_default",
817
+ "pages_url",
818
+ "parent_notebook_id",
819
+ "parent_notebook_name",
820
+ "created_by",
821
+ "last_modified_by"
822
+ ],
823
+ "additionalProperties": false,
824
+ "description": "Created section"
825
+ }
826
+ },
827
+ "required": [
828
+ "section"
829
+ ],
830
+ "additionalProperties": false
831
+ }
832
+ },
833
+ {
834
+ "name": "list_section_groups",
835
+ "displayName": "List Section Groups",
836
+ "description": "List OneNote section groups. When a notebook_id is provided, returns section groups in that notebook. Otherwise returns all section groups across all notebooks. Section groups are folders that organize sections within a notebook.",
837
+ "summary": "List section groups in a notebook or across all notebooks",
838
+ "icon": "folder",
839
+ "group": "Section Groups",
840
+ "input_schema": {
841
+ "type": "object",
842
+ "properties": {
843
+ "notebook_id": {
844
+ "description": "Notebook ID to list section groups for. Omit to list all section groups.",
845
+ "type": "string"
846
+ },
847
+ "top": {
848
+ "description": "Maximum number of section groups to return (default 20, max 100)",
849
+ "type": "integer",
850
+ "minimum": 1,
851
+ "maximum": 100
852
+ }
853
+ },
854
+ "additionalProperties": false
855
+ },
856
+ "output_schema": {
857
+ "type": "object",
858
+ "properties": {
859
+ "section_groups": {
860
+ "type": "array",
861
+ "items": {
862
+ "type": "object",
863
+ "properties": {
864
+ "id": {
865
+ "type": "string",
866
+ "description": "Section group ID"
867
+ },
868
+ "display_name": {
869
+ "type": "string",
870
+ "description": "Section group name"
871
+ },
872
+ "created_at": {
873
+ "type": "string",
874
+ "description": "ISO 8601 creation timestamp"
875
+ },
876
+ "last_modified_at": {
877
+ "type": "string",
878
+ "description": "ISO 8601 last modified timestamp"
879
+ },
880
+ "sections_url": {
881
+ "type": "string",
882
+ "description": "URL to list sections in this group"
883
+ },
884
+ "section_groups_url": {
885
+ "type": "string",
886
+ "description": "URL to list nested section groups"
887
+ },
888
+ "parent_notebook_id": {
889
+ "type": "string",
890
+ "description": "Parent notebook ID"
891
+ },
892
+ "parent_notebook_name": {
893
+ "type": "string",
894
+ "description": "Parent notebook display name"
895
+ },
896
+ "created_by": {
897
+ "type": "object",
898
+ "properties": {
899
+ "id": {
900
+ "type": "string",
901
+ "description": "User ID"
902
+ },
903
+ "display_name": {
904
+ "type": "string",
905
+ "description": "User display name"
906
+ }
907
+ },
908
+ "required": [
909
+ "id",
910
+ "display_name"
911
+ ],
912
+ "additionalProperties": false,
913
+ "description": "User who created the section group"
914
+ },
915
+ "last_modified_by": {
916
+ "type": "object",
917
+ "properties": {
918
+ "id": {
919
+ "type": "string",
920
+ "description": "User ID"
921
+ },
922
+ "display_name": {
923
+ "type": "string",
924
+ "description": "User display name"
925
+ }
926
+ },
927
+ "required": [
928
+ "id",
929
+ "display_name"
930
+ ],
931
+ "additionalProperties": false,
932
+ "description": "User who last modified the section group"
933
+ }
934
+ },
935
+ "required": [
936
+ "id",
937
+ "display_name",
938
+ "created_at",
939
+ "last_modified_at",
940
+ "sections_url",
941
+ "section_groups_url",
942
+ "parent_notebook_id",
943
+ "parent_notebook_name",
944
+ "created_by",
945
+ "last_modified_by"
946
+ ],
947
+ "additionalProperties": false
948
+ },
949
+ "description": "List of section groups"
950
+ }
951
+ },
952
+ "required": [
953
+ "section_groups"
954
+ ],
955
+ "additionalProperties": false
956
+ }
957
+ },
958
+ {
959
+ "name": "get_section_group",
960
+ "displayName": "Get Section Group",
961
+ "description": "Get detailed information about a specific OneNote section group by its ID. Section groups are folders that organize sections within a notebook.",
962
+ "summary": "Get a section group by ID",
963
+ "icon": "folder",
964
+ "group": "Section Groups",
965
+ "input_schema": {
966
+ "type": "object",
967
+ "properties": {
968
+ "section_group_id": {
969
+ "type": "string",
970
+ "minLength": 1,
971
+ "description": "Section group ID"
972
+ }
973
+ },
974
+ "required": [
975
+ "section_group_id"
976
+ ],
977
+ "additionalProperties": false
978
+ },
979
+ "output_schema": {
980
+ "type": "object",
981
+ "properties": {
982
+ "section_group": {
983
+ "type": "object",
984
+ "properties": {
985
+ "id": {
986
+ "type": "string",
987
+ "description": "Section group ID"
988
+ },
989
+ "display_name": {
990
+ "type": "string",
991
+ "description": "Section group name"
992
+ },
993
+ "created_at": {
994
+ "type": "string",
995
+ "description": "ISO 8601 creation timestamp"
996
+ },
997
+ "last_modified_at": {
998
+ "type": "string",
999
+ "description": "ISO 8601 last modified timestamp"
1000
+ },
1001
+ "sections_url": {
1002
+ "type": "string",
1003
+ "description": "URL to list sections in this group"
1004
+ },
1005
+ "section_groups_url": {
1006
+ "type": "string",
1007
+ "description": "URL to list nested section groups"
1008
+ },
1009
+ "parent_notebook_id": {
1010
+ "type": "string",
1011
+ "description": "Parent notebook ID"
1012
+ },
1013
+ "parent_notebook_name": {
1014
+ "type": "string",
1015
+ "description": "Parent notebook display name"
1016
+ },
1017
+ "created_by": {
1018
+ "type": "object",
1019
+ "properties": {
1020
+ "id": {
1021
+ "type": "string",
1022
+ "description": "User ID"
1023
+ },
1024
+ "display_name": {
1025
+ "type": "string",
1026
+ "description": "User display name"
1027
+ }
1028
+ },
1029
+ "required": [
1030
+ "id",
1031
+ "display_name"
1032
+ ],
1033
+ "additionalProperties": false,
1034
+ "description": "User who created the section group"
1035
+ },
1036
+ "last_modified_by": {
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "id": {
1040
+ "type": "string",
1041
+ "description": "User ID"
1042
+ },
1043
+ "display_name": {
1044
+ "type": "string",
1045
+ "description": "User display name"
1046
+ }
1047
+ },
1048
+ "required": [
1049
+ "id",
1050
+ "display_name"
1051
+ ],
1052
+ "additionalProperties": false,
1053
+ "description": "User who last modified the section group"
1054
+ }
1055
+ },
1056
+ "required": [
1057
+ "id",
1058
+ "display_name",
1059
+ "created_at",
1060
+ "last_modified_at",
1061
+ "sections_url",
1062
+ "section_groups_url",
1063
+ "parent_notebook_id",
1064
+ "parent_notebook_name",
1065
+ "created_by",
1066
+ "last_modified_by"
1067
+ ],
1068
+ "additionalProperties": false,
1069
+ "description": "Section group details"
1070
+ }
1071
+ },
1072
+ "required": [
1073
+ "section_group"
1074
+ ],
1075
+ "additionalProperties": false
1076
+ }
1077
+ },
1078
+ {
1079
+ "name": "create_section_group",
1080
+ "displayName": "Create Section Group",
1081
+ "description": "Create a new section group in a OneNote notebook. Section groups act as folders to organize sections within a notebook.",
1082
+ "summary": "Create a section group in a notebook",
1083
+ "icon": "folder-plus",
1084
+ "group": "Section Groups",
1085
+ "input_schema": {
1086
+ "type": "object",
1087
+ "properties": {
1088
+ "notebook_id": {
1089
+ "type": "string",
1090
+ "minLength": 1,
1091
+ "description": "Notebook ID to create the section group in"
1092
+ },
1093
+ "display_name": {
1094
+ "type": "string",
1095
+ "minLength": 1,
1096
+ "description": "Name for the new section group"
1097
+ }
1098
+ },
1099
+ "required": [
1100
+ "notebook_id",
1101
+ "display_name"
1102
+ ],
1103
+ "additionalProperties": false
1104
+ },
1105
+ "output_schema": {
1106
+ "type": "object",
1107
+ "properties": {
1108
+ "section_group": {
1109
+ "type": "object",
1110
+ "properties": {
1111
+ "id": {
1112
+ "type": "string",
1113
+ "description": "Section group ID"
1114
+ },
1115
+ "display_name": {
1116
+ "type": "string",
1117
+ "description": "Section group name"
1118
+ },
1119
+ "created_at": {
1120
+ "type": "string",
1121
+ "description": "ISO 8601 creation timestamp"
1122
+ },
1123
+ "last_modified_at": {
1124
+ "type": "string",
1125
+ "description": "ISO 8601 last modified timestamp"
1126
+ },
1127
+ "sections_url": {
1128
+ "type": "string",
1129
+ "description": "URL to list sections in this group"
1130
+ },
1131
+ "section_groups_url": {
1132
+ "type": "string",
1133
+ "description": "URL to list nested section groups"
1134
+ },
1135
+ "parent_notebook_id": {
1136
+ "type": "string",
1137
+ "description": "Parent notebook ID"
1138
+ },
1139
+ "parent_notebook_name": {
1140
+ "type": "string",
1141
+ "description": "Parent notebook display name"
1142
+ },
1143
+ "created_by": {
1144
+ "type": "object",
1145
+ "properties": {
1146
+ "id": {
1147
+ "type": "string",
1148
+ "description": "User ID"
1149
+ },
1150
+ "display_name": {
1151
+ "type": "string",
1152
+ "description": "User display name"
1153
+ }
1154
+ },
1155
+ "required": [
1156
+ "id",
1157
+ "display_name"
1158
+ ],
1159
+ "additionalProperties": false,
1160
+ "description": "User who created the section group"
1161
+ },
1162
+ "last_modified_by": {
1163
+ "type": "object",
1164
+ "properties": {
1165
+ "id": {
1166
+ "type": "string",
1167
+ "description": "User ID"
1168
+ },
1169
+ "display_name": {
1170
+ "type": "string",
1171
+ "description": "User display name"
1172
+ }
1173
+ },
1174
+ "required": [
1175
+ "id",
1176
+ "display_name"
1177
+ ],
1178
+ "additionalProperties": false,
1179
+ "description": "User who last modified the section group"
1180
+ }
1181
+ },
1182
+ "required": [
1183
+ "id",
1184
+ "display_name",
1185
+ "created_at",
1186
+ "last_modified_at",
1187
+ "sections_url",
1188
+ "section_groups_url",
1189
+ "parent_notebook_id",
1190
+ "parent_notebook_name",
1191
+ "created_by",
1192
+ "last_modified_by"
1193
+ ],
1194
+ "additionalProperties": false,
1195
+ "description": "Created section group"
1196
+ }
1197
+ },
1198
+ "required": [
1199
+ "section_group"
1200
+ ],
1201
+ "additionalProperties": false
1202
+ }
1203
+ },
1204
+ {
1205
+ "name": "create_page",
1206
+ "displayName": "Create Page",
1207
+ "description": "Create a new page in a OneNote section. The page content is specified as HTML. The HTML must include a <title> element inside <head> for the page title. Supports standard HTML elements: headings (h1-h6), paragraphs (p), lists (ul/ol/li), tables (table/tr/td), images (img with src), links (a), and text formatting (b, i, u, strike). Example: <!DOCTYPE html><html><head><title>My Page</title></head><body><h1>Hello</h1><p>Content here</p></body></html>",
1208
+ "summary": "Create a new page in a section with HTML content",
1209
+ "icon": "file-plus",
1210
+ "group": "Pages",
1211
+ "input_schema": {
1212
+ "type": "object",
1213
+ "properties": {
1214
+ "section_id": {
1215
+ "type": "string",
1216
+ "minLength": 1,
1217
+ "description": "Section ID to create the page in"
1218
+ },
1219
+ "html": {
1220
+ "type": "string",
1221
+ "minLength": 1,
1222
+ "description": "Page content as HTML. Must include <!DOCTYPE html><html><head><title>Page Title</title></head><body>...</body></html>"
1223
+ }
1224
+ },
1225
+ "required": [
1226
+ "section_id",
1227
+ "html"
1228
+ ],
1229
+ "additionalProperties": false
1230
+ },
1231
+ "output_schema": {
1232
+ "type": "object",
1233
+ "properties": {
1234
+ "page": {
1235
+ "type": "object",
1236
+ "properties": {
1237
+ "id": {
1238
+ "type": "string",
1239
+ "description": "Page ID"
1240
+ },
1241
+ "title": {
1242
+ "type": "string",
1243
+ "description": "Page title"
1244
+ },
1245
+ "created_at": {
1246
+ "type": "string",
1247
+ "description": "ISO 8601 creation timestamp"
1248
+ },
1249
+ "last_modified_at": {
1250
+ "type": "string",
1251
+ "description": "ISO 8601 last modified timestamp"
1252
+ },
1253
+ "web_url": {
1254
+ "type": "string",
1255
+ "description": "URL to open the page in OneNote Online"
1256
+ },
1257
+ "content_url": {
1258
+ "type": "string",
1259
+ "description": "URL to retrieve the page HTML content"
1260
+ },
1261
+ "parent_section_id": {
1262
+ "type": "string",
1263
+ "description": "Parent section ID"
1264
+ }
1265
+ },
1266
+ "required": [
1267
+ "id",
1268
+ "title",
1269
+ "created_at",
1270
+ "last_modified_at",
1271
+ "web_url",
1272
+ "content_url",
1273
+ "parent_section_id"
1274
+ ],
1275
+ "additionalProperties": false,
1276
+ "description": "Created page"
1277
+ }
1278
+ },
1279
+ "required": [
1280
+ "page"
1281
+ ],
1282
+ "additionalProperties": false
1283
+ }
1284
+ },
1285
+ {
1286
+ "name": "get_current_user",
1287
+ "displayName": "Get Current User",
1288
+ "description": "Get the profile of the currently authenticated Microsoft user including name, email, and language preference.",
1289
+ "summary": "Get the current user profile",
1290
+ "icon": "user",
1291
+ "group": "Account",
1292
+ "input_schema": {
1293
+ "type": "object",
1294
+ "properties": {},
1295
+ "additionalProperties": false
1296
+ },
1297
+ "output_schema": {
1298
+ "type": "object",
1299
+ "properties": {
1300
+ "user": {
1301
+ "type": "object",
1302
+ "properties": {
1303
+ "id": {
1304
+ "type": "string",
1305
+ "description": "User ID"
1306
+ },
1307
+ "display_name": {
1308
+ "type": "string",
1309
+ "description": "Full display name"
1310
+ },
1311
+ "email": {
1312
+ "type": "string",
1313
+ "description": "Email address"
1314
+ },
1315
+ "given_name": {
1316
+ "type": "string",
1317
+ "description": "First name"
1318
+ },
1319
+ "surname": {
1320
+ "type": "string",
1321
+ "description": "Last name"
1322
+ },
1323
+ "preferred_language": {
1324
+ "type": "string",
1325
+ "description": "Preferred language code (e.g., en-US)"
1326
+ }
1327
+ },
1328
+ "required": [
1329
+ "id",
1330
+ "display_name",
1331
+ "email",
1332
+ "given_name",
1333
+ "surname",
1334
+ "preferred_language"
1335
+ ],
1336
+ "additionalProperties": false,
1337
+ "description": "Current user profile"
1338
+ }
1339
+ },
1340
+ "required": [
1341
+ "user"
1342
+ ],
1343
+ "additionalProperties": false
1344
+ }
1345
+ }
1346
+ ]
1347
+ }