@opentabs-dev/opentabs-plugin-microsoft-word 0.0.80 → 0.0.81

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.
package/dist/tools.json DELETED
@@ -1,1940 +0,0 @@
1
- {
2
- "sdkVersion": "0.0.80",
3
- "iconSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M23.004 1.5q.41 0 .703.293t.293.703v19.008q0 .41-.293.703t-.703.293H6.996q-.41 0-.703-.293T6 21.504V18H.996q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6H6V2.496q0-.41.293-.703t.703-.293zM6.035 11.203l1.442 4.735h1.64l1.57-7.876H9.036l-.937 4.653-1.325-4.5H5.38l-1.406 4.523-.938-4.675H1.312l1.57 7.874h1.641zM22.5 21v-3h-15v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3h-15v3Z\" fill=\"#185ABD\"/></svg>",
4
- "iconInactiveSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M23.004 1.5q.41 0 .703.293t.293.703v19.008q0 .41-.293.703t-.703.293H6.996q-.41 0-.703-.293T6 21.504V18H.996q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6H6V2.496q0-.41.293-.703t.703-.293zM6.035 11.203l1.442 4.735h1.64l1.57-7.876H9.036l-.937 4.653-1.325-4.5H5.38l-1.406 4.523-.938-4.675H1.312l1.57 7.874h1.641zM22.5 21v-3h-15v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3h-15v3Z\" fill=\"#999999\"/></svg>",
5
- "iconDarkSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M23.004 1.5q.41 0 .703.293t.293.703v19.008q0 .41-.293.703t-.703.293H6.996q-.41 0-.703-.293T6 21.504V18H.996q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6H6V2.496q0-.41.293-.703t.703-.293zM6.035 11.203l1.442 4.735h1.64l1.57-7.876H9.036l-.937 4.653-1.325-4.5H5.38l-1.406 4.523-.938-4.675H1.312l1.57 7.874h1.641zM22.5 21v-3h-15v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3h-15v3Z\" fill=\"#4284e7\"/></svg>",
6
- "iconDarkInactiveSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M23.004 1.5q.41 0 .703.293t.293.703v19.008q0 .41-.293.703t-.703.293H6.996q-.41 0-.703-.293T6 21.504V18H.996q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6H6V2.496q0-.41.293-.703t.703-.293zM6.035 11.203l1.442 4.735h1.64l1.57-7.876H9.036l-.937 4.653-1.325-4.5H5.38l-1.406 4.523-.938-4.675H1.312l1.57 7.874h1.641zM22.5 21v-3h-15v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3h-15v3Z\" fill=\"#999999\"/></svg>",
7
- "tools": [
8
- {
9
- "name": "get_current_user",
10
- "displayName": "Get Current User",
11
- "description": "Get the profile of the currently authenticated Microsoft 365 user including name and email.",
12
- "summary": "Get the current user profile",
13
- "icon": "user",
14
- "group": "Account",
15
- "input_schema": {
16
- "type": "object",
17
- "properties": {},
18
- "additionalProperties": false
19
- },
20
- "output_schema": {
21
- "type": "object",
22
- "properties": {
23
- "user": {
24
- "type": "object",
25
- "properties": {
26
- "id": {
27
- "type": "string",
28
- "description": "User ID"
29
- },
30
- "display_name": {
31
- "type": "string",
32
- "description": "Display name"
33
- },
34
- "email": {
35
- "type": "string",
36
- "description": "Email address"
37
- }
38
- },
39
- "required": [
40
- "id",
41
- "display_name",
42
- "email"
43
- ],
44
- "additionalProperties": false
45
- }
46
- },
47
- "required": [
48
- "user"
49
- ],
50
- "additionalProperties": false
51
- }
52
- },
53
- {
54
- "name": "get_drive",
55
- "displayName": "Get Drive",
56
- "description": "Get the current user's OneDrive information including storage quota and drive type.",
57
- "summary": "Get OneDrive details",
58
- "icon": "hard-drive",
59
- "group": "Drive",
60
- "input_schema": {
61
- "type": "object",
62
- "properties": {},
63
- "additionalProperties": false
64
- },
65
- "output_schema": {
66
- "type": "object",
67
- "properties": {
68
- "drive": {
69
- "type": "object",
70
- "properties": {
71
- "id": {
72
- "type": "string",
73
- "description": "Drive ID"
74
- },
75
- "name": {
76
- "type": "string",
77
- "description": "Drive name"
78
- },
79
- "drive_type": {
80
- "type": "string",
81
- "description": "Drive type (personal, business, documentLibrary)"
82
- },
83
- "quota": {
84
- "type": "object",
85
- "properties": {
86
- "total": {
87
- "type": "number",
88
- "description": "Total storage in bytes"
89
- },
90
- "used": {
91
- "type": "number",
92
- "description": "Used storage in bytes"
93
- },
94
- "remaining": {
95
- "type": "number",
96
- "description": "Remaining storage in bytes"
97
- },
98
- "state": {
99
- "type": "string",
100
- "description": "Quota state (normal, nearing, critical, exceeded)"
101
- }
102
- },
103
- "required": [
104
- "total",
105
- "used",
106
- "remaining",
107
- "state"
108
- ],
109
- "additionalProperties": false,
110
- "description": "Storage quota information"
111
- }
112
- },
113
- "required": [
114
- "id",
115
- "name",
116
- "drive_type",
117
- "quota"
118
- ],
119
- "additionalProperties": false
120
- }
121
- },
122
- "required": [
123
- "drive"
124
- ],
125
- "additionalProperties": false
126
- }
127
- },
128
- {
129
- "name": "get_active_document",
130
- "displayName": "Get Active Document",
131
- "description": "Get information about the document currently open in the Word Online editor. Returns the document ID, name, and metadata. The document ID can then be used with get_document_text, update_document, append_to_document, replace_text_in_document, and other tools. This is the recommended first step — call this to discover the active document before reading or editing it.",
132
- "summary": "Get the currently open document",
133
- "icon": "file",
134
- "group": "Documents",
135
- "input_schema": {
136
- "type": "object",
137
- "properties": {},
138
- "additionalProperties": false
139
- },
140
- "output_schema": {
141
- "type": "object",
142
- "properties": {
143
- "item": {
144
- "type": "object",
145
- "properties": {
146
- "id": {
147
- "type": "string",
148
- "description": "Item ID"
149
- },
150
- "name": {
151
- "type": "string",
152
- "description": "File or folder name"
153
- },
154
- "size": {
155
- "type": "number",
156
- "description": "Size in bytes (0 for folders)"
157
- },
158
- "is_folder": {
159
- "type": "boolean",
160
- "description": "Whether the item is a folder"
161
- },
162
- "mime_type": {
163
- "type": "string",
164
- "description": "MIME type (empty for folders)"
165
- },
166
- "web_url": {
167
- "type": "string",
168
- "description": "URL to open in browser"
169
- },
170
- "created_at": {
171
- "type": "string",
172
- "description": "ISO 8601 creation timestamp"
173
- },
174
- "last_modified_at": {
175
- "type": "string",
176
- "description": "ISO 8601 last modification timestamp"
177
- },
178
- "parent_path": {
179
- "type": "string",
180
- "description": "Parent folder path"
181
- },
182
- "parent_id": {
183
- "type": "string",
184
- "description": "Parent folder ID"
185
- },
186
- "description": {
187
- "type": "string",
188
- "description": "Item description"
189
- }
190
- },
191
- "required": [
192
- "id",
193
- "name",
194
- "size",
195
- "is_folder",
196
- "mime_type",
197
- "web_url",
198
- "created_at",
199
- "last_modified_at",
200
- "parent_path",
201
- "parent_id",
202
- "description"
203
- ],
204
- "additionalProperties": false,
205
- "description": "The currently open document"
206
- },
207
- "drive_id": {
208
- "type": "string",
209
- "description": "Drive ID (needed for some advanced operations)"
210
- }
211
- },
212
- "required": [
213
- "item",
214
- "drive_id"
215
- ],
216
- "additionalProperties": false
217
- }
218
- },
219
- {
220
- "name": "get_document_text",
221
- "displayName": "Get Document Text",
222
- "description": "Extract plain text content from a Word document (.docx). Downloads the binary file, decompresses the OOXML archive, and extracts text from all paragraphs. Returns paragraphs as an array of strings.",
223
- "summary": "Extract text from a Word document",
224
- "icon": "file-text",
225
- "group": "Documents",
226
- "input_schema": {
227
- "type": "object",
228
- "properties": {
229
- "item_id": {
230
- "type": "string",
231
- "description": "File ID of the .docx document (from list_children or search_files)"
232
- }
233
- },
234
- "required": [
235
- "item_id"
236
- ],
237
- "additionalProperties": false
238
- },
239
- "output_schema": {
240
- "type": "object",
241
- "properties": {
242
- "paragraphs": {
243
- "type": "array",
244
- "items": {
245
- "type": "string"
246
- },
247
- "description": "Text paragraphs extracted from the document"
248
- },
249
- "text": {
250
- "type": "string",
251
- "description": "Full document text with paragraphs joined by newlines"
252
- }
253
- },
254
- "required": [
255
- "paragraphs",
256
- "text"
257
- ],
258
- "additionalProperties": false
259
- }
260
- },
261
- {
262
- "name": "create_document",
263
- "displayName": "Create Document",
264
- "description": "Create a new Word document (.docx) with the given text content. Each string in the paragraphs array becomes a separate paragraph in the document. The file is created at the specified path in OneDrive.",
265
- "summary": "Create a new Word document with text",
266
- "icon": "file-plus",
267
- "group": "Documents",
268
- "input_schema": {
269
- "type": "object",
270
- "properties": {
271
- "path": {
272
- "type": "string",
273
- "minLength": 1,
274
- "description": "File path relative to drive root, must end with .docx (e.g., \"Documents/report.docx\")"
275
- },
276
- "paragraphs": {
277
- "minItems": 1,
278
- "type": "array",
279
- "items": {
280
- "type": "string"
281
- },
282
- "description": "Array of text paragraphs for the document content"
283
- }
284
- },
285
- "required": [
286
- "path",
287
- "paragraphs"
288
- ],
289
- "additionalProperties": false
290
- },
291
- "output_schema": {
292
- "type": "object",
293
- "properties": {
294
- "item": {
295
- "type": "object",
296
- "properties": {
297
- "id": {
298
- "type": "string",
299
- "description": "Item ID"
300
- },
301
- "name": {
302
- "type": "string",
303
- "description": "File or folder name"
304
- },
305
- "size": {
306
- "type": "number",
307
- "description": "Size in bytes (0 for folders)"
308
- },
309
- "is_folder": {
310
- "type": "boolean",
311
- "description": "Whether the item is a folder"
312
- },
313
- "mime_type": {
314
- "type": "string",
315
- "description": "MIME type (empty for folders)"
316
- },
317
- "web_url": {
318
- "type": "string",
319
- "description": "URL to open in browser"
320
- },
321
- "created_at": {
322
- "type": "string",
323
- "description": "ISO 8601 creation timestamp"
324
- },
325
- "last_modified_at": {
326
- "type": "string",
327
- "description": "ISO 8601 last modification timestamp"
328
- },
329
- "parent_path": {
330
- "type": "string",
331
- "description": "Parent folder path"
332
- },
333
- "parent_id": {
334
- "type": "string",
335
- "description": "Parent folder ID"
336
- },
337
- "description": {
338
- "type": "string",
339
- "description": "Item description"
340
- }
341
- },
342
- "required": [
343
- "id",
344
- "name",
345
- "size",
346
- "is_folder",
347
- "mime_type",
348
- "web_url",
349
- "created_at",
350
- "last_modified_at",
351
- "parent_path",
352
- "parent_id",
353
- "description"
354
- ],
355
- "additionalProperties": false,
356
- "description": "The created document"
357
- }
358
- },
359
- "required": [
360
- "item"
361
- ],
362
- "additionalProperties": false
363
- }
364
- },
365
- {
366
- "name": "update_document",
367
- "displayName": "Update Document",
368
- "description": "Replace the entire text content of an existing Word document (.docx). Downloads the document, replaces all body content with the new paragraphs, and re-uploads. WARNING: This removes all existing formatting (bold, italic, headings, etc.) — use replace_text_in_document for formatting-safe edits.",
369
- "summary": "Replace all text in a Word document",
370
- "icon": "file-pen",
371
- "group": "Documents",
372
- "input_schema": {
373
- "type": "object",
374
- "properties": {
375
- "item_id": {
376
- "type": "string",
377
- "description": "File ID of the .docx document to update"
378
- },
379
- "paragraphs": {
380
- "minItems": 1,
381
- "type": "array",
382
- "items": {
383
- "type": "string"
384
- },
385
- "description": "New text paragraphs to replace the document body content"
386
- }
387
- },
388
- "required": [
389
- "item_id",
390
- "paragraphs"
391
- ],
392
- "additionalProperties": false
393
- },
394
- "output_schema": {
395
- "type": "object",
396
- "properties": {
397
- "success": {
398
- "type": "boolean",
399
- "description": "Whether the document was updated"
400
- }
401
- },
402
- "required": [
403
- "success"
404
- ],
405
- "additionalProperties": false
406
- }
407
- },
408
- {
409
- "name": "append_to_document",
410
- "displayName": "Append to Document",
411
- "description": "Append paragraphs to the end of an existing Word document (.docx). Downloads the document, adds the new paragraphs after all existing content, and re-uploads. Existing content is preserved.",
412
- "summary": "Append paragraphs to a Word document",
413
- "icon": "file-plus-2",
414
- "group": "Documents",
415
- "input_schema": {
416
- "type": "object",
417
- "properties": {
418
- "item_id": {
419
- "type": "string",
420
- "description": "File ID of the .docx document to append to"
421
- },
422
- "paragraphs": {
423
- "minItems": 1,
424
- "type": "array",
425
- "items": {
426
- "type": "string"
427
- },
428
- "description": "Text paragraphs to append at the end of the document"
429
- }
430
- },
431
- "required": [
432
- "item_id",
433
- "paragraphs"
434
- ],
435
- "additionalProperties": false
436
- },
437
- "output_schema": {
438
- "type": "object",
439
- "properties": {
440
- "success": {
441
- "type": "boolean",
442
- "description": "Whether the paragraphs were appended"
443
- }
444
- },
445
- "required": [
446
- "success"
447
- ],
448
- "additionalProperties": false
449
- }
450
- },
451
- {
452
- "name": "replace_text_in_document",
453
- "displayName": "Replace Text in Document",
454
- "description": "Find and replace text in an existing Word document (.docx). This is the recommended way to edit documents because it preserves all formatting (bold, italic, headings, styles). Replaces all occurrences of the search text with the replacement text within existing paragraph runs. The search is case-sensitive and matches exact strings.",
455
- "summary": "Find and replace text in a Word document",
456
- "icon": "replace",
457
- "group": "Documents",
458
- "input_schema": {
459
- "type": "object",
460
- "properties": {
461
- "item_id": {
462
- "type": "string",
463
- "description": "File ID of the .docx document"
464
- },
465
- "find": {
466
- "type": "string",
467
- "minLength": 1,
468
- "description": "Text to search for (case-sensitive, exact match)"
469
- },
470
- "replace": {
471
- "type": "string",
472
- "description": "Replacement text (use empty string to delete matches)"
473
- }
474
- },
475
- "required": [
476
- "item_id",
477
- "find",
478
- "replace"
479
- ],
480
- "additionalProperties": false
481
- },
482
- "output_schema": {
483
- "type": "object",
484
- "properties": {
485
- "success": {
486
- "type": "boolean",
487
- "description": "Whether replacements were made"
488
- },
489
- "replacements": {
490
- "type": "integer",
491
- "minimum": -9007199254740991,
492
- "maximum": 9007199254740991,
493
- "description": "Number of replacements made"
494
- }
495
- },
496
- "required": [
497
- "success",
498
- "replacements"
499
- ],
500
- "additionalProperties": false
501
- }
502
- },
503
- {
504
- "name": "get_file_content",
505
- "displayName": "Get File Content",
506
- "description": "Read text content of a file by its ID. Works with text-based files (.txt, .md, .csv, .html, .json, .xml, .yaml, .log, etc.). For Word documents (.docx), use get_document_text instead.",
507
- "summary": "Read text content of a file",
508
- "icon": "file-code",
509
- "group": "Files",
510
- "input_schema": {
511
- "type": "object",
512
- "properties": {
513
- "item_id": {
514
- "type": "string",
515
- "description": "File ID"
516
- }
517
- },
518
- "required": [
519
- "item_id"
520
- ],
521
- "additionalProperties": false
522
- },
523
- "output_schema": {
524
- "type": "object",
525
- "properties": {
526
- "content": {
527
- "type": "string",
528
- "description": "File text content"
529
- },
530
- "size": {
531
- "type": "number",
532
- "description": "Content size in bytes"
533
- }
534
- },
535
- "required": [
536
- "content",
537
- "size"
538
- ],
539
- "additionalProperties": false
540
- }
541
- },
542
- {
543
- "name": "list_recent_documents",
544
- "displayName": "List Recent Documents",
545
- "description": "List recently accessed documents from OneDrive.",
546
- "summary": "List recent documents",
547
- "icon": "clock",
548
- "group": "Files",
549
- "input_schema": {
550
- "type": "object",
551
- "properties": {
552
- "limit": {
553
- "description": "Max results (default 10, max 50)",
554
- "type": "integer",
555
- "minimum": 1,
556
- "maximum": 50
557
- }
558
- },
559
- "additionalProperties": false
560
- },
561
- "output_schema": {
562
- "type": "object",
563
- "properties": {
564
- "items": {
565
- "type": "array",
566
- "items": {
567
- "type": "object",
568
- "properties": {
569
- "id": {
570
- "type": "string",
571
- "description": "Item ID"
572
- },
573
- "name": {
574
- "type": "string",
575
- "description": "File or folder name"
576
- },
577
- "size": {
578
- "type": "number",
579
- "description": "Size in bytes (0 for folders)"
580
- },
581
- "is_folder": {
582
- "type": "boolean",
583
- "description": "Whether the item is a folder"
584
- },
585
- "mime_type": {
586
- "type": "string",
587
- "description": "MIME type (empty for folders)"
588
- },
589
- "web_url": {
590
- "type": "string",
591
- "description": "URL to open in browser"
592
- },
593
- "created_at": {
594
- "type": "string",
595
- "description": "ISO 8601 creation timestamp"
596
- },
597
- "last_modified_at": {
598
- "type": "string",
599
- "description": "ISO 8601 last modification timestamp"
600
- },
601
- "parent_path": {
602
- "type": "string",
603
- "description": "Parent folder path"
604
- },
605
- "parent_id": {
606
- "type": "string",
607
- "description": "Parent folder ID"
608
- },
609
- "description": {
610
- "type": "string",
611
- "description": "Item description"
612
- }
613
- },
614
- "required": [
615
- "id",
616
- "name",
617
- "size",
618
- "is_folder",
619
- "mime_type",
620
- "web_url",
621
- "created_at",
622
- "last_modified_at",
623
- "parent_path",
624
- "parent_id",
625
- "description"
626
- ],
627
- "additionalProperties": false
628
- },
629
- "description": "Recently accessed items"
630
- }
631
- },
632
- "required": [
633
- "items"
634
- ],
635
- "additionalProperties": false
636
- }
637
- },
638
- {
639
- "name": "list_children",
640
- "displayName": "List Children",
641
- "description": "List files and folders in a directory. Use item_id to specify the folder, or omit for root.",
642
- "summary": "List files and folders",
643
- "icon": "folder-open",
644
- "group": "Files",
645
- "input_schema": {
646
- "type": "object",
647
- "properties": {
648
- "item_id": {
649
- "description": "Folder ID — omit for drive root",
650
- "type": "string"
651
- },
652
- "top": {
653
- "description": "Max results (default 20, max 200)",
654
- "type": "integer",
655
- "minimum": 1,
656
- "maximum": 200
657
- },
658
- "order_by": {
659
- "description": "Sort field (e.g., \"name asc\", \"lastModifiedDateTime desc\")",
660
- "type": "string"
661
- }
662
- },
663
- "additionalProperties": false
664
- },
665
- "output_schema": {
666
- "type": "object",
667
- "properties": {
668
- "items": {
669
- "type": "array",
670
- "items": {
671
- "type": "object",
672
- "properties": {
673
- "id": {
674
- "type": "string",
675
- "description": "Item ID"
676
- },
677
- "name": {
678
- "type": "string",
679
- "description": "File or folder name"
680
- },
681
- "size": {
682
- "type": "number",
683
- "description": "Size in bytes (0 for folders)"
684
- },
685
- "is_folder": {
686
- "type": "boolean",
687
- "description": "Whether the item is a folder"
688
- },
689
- "mime_type": {
690
- "type": "string",
691
- "description": "MIME type (empty for folders)"
692
- },
693
- "web_url": {
694
- "type": "string",
695
- "description": "URL to open in browser"
696
- },
697
- "created_at": {
698
- "type": "string",
699
- "description": "ISO 8601 creation timestamp"
700
- },
701
- "last_modified_at": {
702
- "type": "string",
703
- "description": "ISO 8601 last modification timestamp"
704
- },
705
- "parent_path": {
706
- "type": "string",
707
- "description": "Parent folder path"
708
- },
709
- "parent_id": {
710
- "type": "string",
711
- "description": "Parent folder ID"
712
- },
713
- "description": {
714
- "type": "string",
715
- "description": "Item description"
716
- }
717
- },
718
- "required": [
719
- "id",
720
- "name",
721
- "size",
722
- "is_folder",
723
- "mime_type",
724
- "web_url",
725
- "created_at",
726
- "last_modified_at",
727
- "parent_path",
728
- "parent_id",
729
- "description"
730
- ],
731
- "additionalProperties": false
732
- },
733
- "description": "Files and folders"
734
- }
735
- },
736
- "required": [
737
- "items"
738
- ],
739
- "additionalProperties": false
740
- }
741
- },
742
- {
743
- "name": "get_item",
744
- "displayName": "Get Item",
745
- "description": "Get metadata for a file or folder by its ID.",
746
- "summary": "Get file or folder details",
747
- "icon": "file",
748
- "group": "Files",
749
- "input_schema": {
750
- "type": "object",
751
- "properties": {
752
- "item_id": {
753
- "type": "string",
754
- "description": "File or folder ID"
755
- }
756
- },
757
- "required": [
758
- "item_id"
759
- ],
760
- "additionalProperties": false
761
- },
762
- "output_schema": {
763
- "type": "object",
764
- "properties": {
765
- "item": {
766
- "type": "object",
767
- "properties": {
768
- "id": {
769
- "type": "string",
770
- "description": "Item ID"
771
- },
772
- "name": {
773
- "type": "string",
774
- "description": "File or folder name"
775
- },
776
- "size": {
777
- "type": "number",
778
- "description": "Size in bytes (0 for folders)"
779
- },
780
- "is_folder": {
781
- "type": "boolean",
782
- "description": "Whether the item is a folder"
783
- },
784
- "mime_type": {
785
- "type": "string",
786
- "description": "MIME type (empty for folders)"
787
- },
788
- "web_url": {
789
- "type": "string",
790
- "description": "URL to open in browser"
791
- },
792
- "created_at": {
793
- "type": "string",
794
- "description": "ISO 8601 creation timestamp"
795
- },
796
- "last_modified_at": {
797
- "type": "string",
798
- "description": "ISO 8601 last modification timestamp"
799
- },
800
- "parent_path": {
801
- "type": "string",
802
- "description": "Parent folder path"
803
- },
804
- "parent_id": {
805
- "type": "string",
806
- "description": "Parent folder ID"
807
- },
808
- "description": {
809
- "type": "string",
810
- "description": "Item description"
811
- }
812
- },
813
- "required": [
814
- "id",
815
- "name",
816
- "size",
817
- "is_folder",
818
- "mime_type",
819
- "web_url",
820
- "created_at",
821
- "last_modified_at",
822
- "parent_path",
823
- "parent_id",
824
- "description"
825
- ],
826
- "additionalProperties": false
827
- }
828
- },
829
- "required": [
830
- "item"
831
- ],
832
- "additionalProperties": false
833
- }
834
- },
835
- {
836
- "name": "search_files",
837
- "displayName": "Search Files",
838
- "description": "Search for files and folders by name in OneDrive.",
839
- "summary": "Search files and folders",
840
- "icon": "search",
841
- "group": "Files",
842
- "input_schema": {
843
- "type": "object",
844
- "properties": {
845
- "query": {
846
- "type": "string",
847
- "minLength": 1,
848
- "description": "Search query text"
849
- },
850
- "top": {
851
- "description": "Max results (default 10, max 50)",
852
- "type": "integer",
853
- "minimum": 1,
854
- "maximum": 50
855
- }
856
- },
857
- "required": [
858
- "query"
859
- ],
860
- "additionalProperties": false
861
- },
862
- "output_schema": {
863
- "type": "object",
864
- "properties": {
865
- "items": {
866
- "type": "array",
867
- "items": {
868
- "type": "object",
869
- "properties": {
870
- "id": {
871
- "type": "string",
872
- "description": "Item ID"
873
- },
874
- "name": {
875
- "type": "string",
876
- "description": "File or folder name"
877
- },
878
- "size": {
879
- "type": "number",
880
- "description": "Size in bytes (0 for folders)"
881
- },
882
- "is_folder": {
883
- "type": "boolean",
884
- "description": "Whether the item is a folder"
885
- },
886
- "mime_type": {
887
- "type": "string",
888
- "description": "MIME type (empty for folders)"
889
- },
890
- "web_url": {
891
- "type": "string",
892
- "description": "URL to open in browser"
893
- },
894
- "created_at": {
895
- "type": "string",
896
- "description": "ISO 8601 creation timestamp"
897
- },
898
- "last_modified_at": {
899
- "type": "string",
900
- "description": "ISO 8601 last modification timestamp"
901
- },
902
- "parent_path": {
903
- "type": "string",
904
- "description": "Parent folder path"
905
- },
906
- "parent_id": {
907
- "type": "string",
908
- "description": "Parent folder ID"
909
- },
910
- "description": {
911
- "type": "string",
912
- "description": "Item description"
913
- }
914
- },
915
- "required": [
916
- "id",
917
- "name",
918
- "size",
919
- "is_folder",
920
- "mime_type",
921
- "web_url",
922
- "created_at",
923
- "last_modified_at",
924
- "parent_path",
925
- "parent_id",
926
- "description"
927
- ],
928
- "additionalProperties": false
929
- },
930
- "description": "Matching files and folders"
931
- }
932
- },
933
- "required": [
934
- "items"
935
- ],
936
- "additionalProperties": false
937
- }
938
- },
939
- {
940
- "name": "create_folder",
941
- "displayName": "Create Folder",
942
- "description": "Create a new folder. Specify parent_id for nested folders, omit for root.",
943
- "summary": "Create a folder",
944
- "icon": "folder-plus",
945
- "group": "Files",
946
- "input_schema": {
947
- "type": "object",
948
- "properties": {
949
- "name": {
950
- "type": "string",
951
- "minLength": 1,
952
- "description": "Folder name"
953
- },
954
- "parent_id": {
955
- "description": "Parent folder ID — omit for drive root",
956
- "type": "string"
957
- }
958
- },
959
- "required": [
960
- "name"
961
- ],
962
- "additionalProperties": false
963
- },
964
- "output_schema": {
965
- "type": "object",
966
- "properties": {
967
- "item": {
968
- "type": "object",
969
- "properties": {
970
- "id": {
971
- "type": "string",
972
- "description": "Item ID"
973
- },
974
- "name": {
975
- "type": "string",
976
- "description": "File or folder name"
977
- },
978
- "size": {
979
- "type": "number",
980
- "description": "Size in bytes (0 for folders)"
981
- },
982
- "is_folder": {
983
- "type": "boolean",
984
- "description": "Whether the item is a folder"
985
- },
986
- "mime_type": {
987
- "type": "string",
988
- "description": "MIME type (empty for folders)"
989
- },
990
- "web_url": {
991
- "type": "string",
992
- "description": "URL to open in browser"
993
- },
994
- "created_at": {
995
- "type": "string",
996
- "description": "ISO 8601 creation timestamp"
997
- },
998
- "last_modified_at": {
999
- "type": "string",
1000
- "description": "ISO 8601 last modification timestamp"
1001
- },
1002
- "parent_path": {
1003
- "type": "string",
1004
- "description": "Parent folder path"
1005
- },
1006
- "parent_id": {
1007
- "type": "string",
1008
- "description": "Parent folder ID"
1009
- },
1010
- "description": {
1011
- "type": "string",
1012
- "description": "Item description"
1013
- }
1014
- },
1015
- "required": [
1016
- "id",
1017
- "name",
1018
- "size",
1019
- "is_folder",
1020
- "mime_type",
1021
- "web_url",
1022
- "created_at",
1023
- "last_modified_at",
1024
- "parent_path",
1025
- "parent_id",
1026
- "description"
1027
- ],
1028
- "additionalProperties": false
1029
- }
1030
- },
1031
- "required": [
1032
- "item"
1033
- ],
1034
- "additionalProperties": false
1035
- }
1036
- },
1037
- {
1038
- "name": "upload_file",
1039
- "displayName": "Upload File",
1040
- "description": "Upload a text file to OneDrive. Creates a new file or overwrites existing. Specify the full path relative to drive root (e.g., \"Documents/report.txt\").",
1041
- "summary": "Upload a text file to OneDrive",
1042
- "icon": "upload",
1043
- "group": "Files",
1044
- "input_schema": {
1045
- "type": "object",
1046
- "properties": {
1047
- "path": {
1048
- "type": "string",
1049
- "minLength": 1,
1050
- "description": "File path relative to drive root (e.g., \"Documents/report.txt\")"
1051
- },
1052
- "content": {
1053
- "type": "string",
1054
- "description": "File content as text"
1055
- },
1056
- "content_type": {
1057
- "description": "MIME type (default \"text/plain\")",
1058
- "type": "string"
1059
- }
1060
- },
1061
- "required": [
1062
- "path",
1063
- "content"
1064
- ],
1065
- "additionalProperties": false
1066
- },
1067
- "output_schema": {
1068
- "type": "object",
1069
- "properties": {
1070
- "item": {
1071
- "type": "object",
1072
- "properties": {
1073
- "id": {
1074
- "type": "string",
1075
- "description": "Item ID"
1076
- },
1077
- "name": {
1078
- "type": "string",
1079
- "description": "File or folder name"
1080
- },
1081
- "size": {
1082
- "type": "number",
1083
- "description": "Size in bytes (0 for folders)"
1084
- },
1085
- "is_folder": {
1086
- "type": "boolean",
1087
- "description": "Whether the item is a folder"
1088
- },
1089
- "mime_type": {
1090
- "type": "string",
1091
- "description": "MIME type (empty for folders)"
1092
- },
1093
- "web_url": {
1094
- "type": "string",
1095
- "description": "URL to open in browser"
1096
- },
1097
- "created_at": {
1098
- "type": "string",
1099
- "description": "ISO 8601 creation timestamp"
1100
- },
1101
- "last_modified_at": {
1102
- "type": "string",
1103
- "description": "ISO 8601 last modification timestamp"
1104
- },
1105
- "parent_path": {
1106
- "type": "string",
1107
- "description": "Parent folder path"
1108
- },
1109
- "parent_id": {
1110
- "type": "string",
1111
- "description": "Parent folder ID"
1112
- },
1113
- "description": {
1114
- "type": "string",
1115
- "description": "Item description"
1116
- }
1117
- },
1118
- "required": [
1119
- "id",
1120
- "name",
1121
- "size",
1122
- "is_folder",
1123
- "mime_type",
1124
- "web_url",
1125
- "created_at",
1126
- "last_modified_at",
1127
- "parent_path",
1128
- "parent_id",
1129
- "description"
1130
- ],
1131
- "additionalProperties": false,
1132
- "description": "The uploaded file"
1133
- }
1134
- },
1135
- "required": [
1136
- "item"
1137
- ],
1138
- "additionalProperties": false
1139
- }
1140
- },
1141
- {
1142
- "name": "update_file_content",
1143
- "displayName": "Update File Content",
1144
- "description": "Update the content of an existing file by its ID.",
1145
- "summary": "Update a file's content",
1146
- "icon": "file-pen",
1147
- "group": "Files",
1148
- "input_schema": {
1149
- "type": "object",
1150
- "properties": {
1151
- "item_id": {
1152
- "type": "string",
1153
- "description": "File ID"
1154
- },
1155
- "content": {
1156
- "type": "string",
1157
- "description": "New file content"
1158
- },
1159
- "content_type": {
1160
- "description": "MIME type (default \"text/plain\")",
1161
- "type": "string"
1162
- }
1163
- },
1164
- "required": [
1165
- "item_id",
1166
- "content"
1167
- ],
1168
- "additionalProperties": false
1169
- },
1170
- "output_schema": {
1171
- "type": "object",
1172
- "properties": {
1173
- "item": {
1174
- "type": "object",
1175
- "properties": {
1176
- "id": {
1177
- "type": "string",
1178
- "description": "Item ID"
1179
- },
1180
- "name": {
1181
- "type": "string",
1182
- "description": "File or folder name"
1183
- },
1184
- "size": {
1185
- "type": "number",
1186
- "description": "Size in bytes (0 for folders)"
1187
- },
1188
- "is_folder": {
1189
- "type": "boolean",
1190
- "description": "Whether the item is a folder"
1191
- },
1192
- "mime_type": {
1193
- "type": "string",
1194
- "description": "MIME type (empty for folders)"
1195
- },
1196
- "web_url": {
1197
- "type": "string",
1198
- "description": "URL to open in browser"
1199
- },
1200
- "created_at": {
1201
- "type": "string",
1202
- "description": "ISO 8601 creation timestamp"
1203
- },
1204
- "last_modified_at": {
1205
- "type": "string",
1206
- "description": "ISO 8601 last modification timestamp"
1207
- },
1208
- "parent_path": {
1209
- "type": "string",
1210
- "description": "Parent folder path"
1211
- },
1212
- "parent_id": {
1213
- "type": "string",
1214
- "description": "Parent folder ID"
1215
- },
1216
- "description": {
1217
- "type": "string",
1218
- "description": "Item description"
1219
- }
1220
- },
1221
- "required": [
1222
- "id",
1223
- "name",
1224
- "size",
1225
- "is_folder",
1226
- "mime_type",
1227
- "web_url",
1228
- "created_at",
1229
- "last_modified_at",
1230
- "parent_path",
1231
- "parent_id",
1232
- "description"
1233
- ],
1234
- "additionalProperties": false,
1235
- "description": "The updated file"
1236
- }
1237
- },
1238
- "required": [
1239
- "item"
1240
- ],
1241
- "additionalProperties": false
1242
- }
1243
- },
1244
- {
1245
- "name": "rename_item",
1246
- "displayName": "Rename Item",
1247
- "description": "Rename a file or folder.",
1248
- "summary": "Rename a file or folder",
1249
- "icon": "pencil",
1250
- "group": "Files",
1251
- "input_schema": {
1252
- "type": "object",
1253
- "properties": {
1254
- "item_id": {
1255
- "type": "string",
1256
- "description": "File or folder ID"
1257
- },
1258
- "name": {
1259
- "type": "string",
1260
- "minLength": 1,
1261
- "description": "New name for the item"
1262
- }
1263
- },
1264
- "required": [
1265
- "item_id",
1266
- "name"
1267
- ],
1268
- "additionalProperties": false
1269
- },
1270
- "output_schema": {
1271
- "type": "object",
1272
- "properties": {
1273
- "item": {
1274
- "type": "object",
1275
- "properties": {
1276
- "id": {
1277
- "type": "string",
1278
- "description": "Item ID"
1279
- },
1280
- "name": {
1281
- "type": "string",
1282
- "description": "File or folder name"
1283
- },
1284
- "size": {
1285
- "type": "number",
1286
- "description": "Size in bytes (0 for folders)"
1287
- },
1288
- "is_folder": {
1289
- "type": "boolean",
1290
- "description": "Whether the item is a folder"
1291
- },
1292
- "mime_type": {
1293
- "type": "string",
1294
- "description": "MIME type (empty for folders)"
1295
- },
1296
- "web_url": {
1297
- "type": "string",
1298
- "description": "URL to open in browser"
1299
- },
1300
- "created_at": {
1301
- "type": "string",
1302
- "description": "ISO 8601 creation timestamp"
1303
- },
1304
- "last_modified_at": {
1305
- "type": "string",
1306
- "description": "ISO 8601 last modification timestamp"
1307
- },
1308
- "parent_path": {
1309
- "type": "string",
1310
- "description": "Parent folder path"
1311
- },
1312
- "parent_id": {
1313
- "type": "string",
1314
- "description": "Parent folder ID"
1315
- },
1316
- "description": {
1317
- "type": "string",
1318
- "description": "Item description"
1319
- }
1320
- },
1321
- "required": [
1322
- "id",
1323
- "name",
1324
- "size",
1325
- "is_folder",
1326
- "mime_type",
1327
- "web_url",
1328
- "created_at",
1329
- "last_modified_at",
1330
- "parent_path",
1331
- "parent_id",
1332
- "description"
1333
- ],
1334
- "additionalProperties": false,
1335
- "description": "The renamed item"
1336
- }
1337
- },
1338
- "required": [
1339
- "item"
1340
- ],
1341
- "additionalProperties": false
1342
- }
1343
- },
1344
- {
1345
- "name": "move_item",
1346
- "displayName": "Move Item",
1347
- "description": "Move a file or folder to a new parent folder.",
1348
- "summary": "Move a file or folder",
1349
- "icon": "folder-input",
1350
- "group": "Files",
1351
- "input_schema": {
1352
- "type": "object",
1353
- "properties": {
1354
- "item_id": {
1355
- "type": "string",
1356
- "description": "ID of the file or folder to move"
1357
- },
1358
- "destination_id": {
1359
- "type": "string",
1360
- "description": "ID of the destination folder"
1361
- }
1362
- },
1363
- "required": [
1364
- "item_id",
1365
- "destination_id"
1366
- ],
1367
- "additionalProperties": false
1368
- },
1369
- "output_schema": {
1370
- "type": "object",
1371
- "properties": {
1372
- "item": {
1373
- "type": "object",
1374
- "properties": {
1375
- "id": {
1376
- "type": "string",
1377
- "description": "Item ID"
1378
- },
1379
- "name": {
1380
- "type": "string",
1381
- "description": "File or folder name"
1382
- },
1383
- "size": {
1384
- "type": "number",
1385
- "description": "Size in bytes (0 for folders)"
1386
- },
1387
- "is_folder": {
1388
- "type": "boolean",
1389
- "description": "Whether the item is a folder"
1390
- },
1391
- "mime_type": {
1392
- "type": "string",
1393
- "description": "MIME type (empty for folders)"
1394
- },
1395
- "web_url": {
1396
- "type": "string",
1397
- "description": "URL to open in browser"
1398
- },
1399
- "created_at": {
1400
- "type": "string",
1401
- "description": "ISO 8601 creation timestamp"
1402
- },
1403
- "last_modified_at": {
1404
- "type": "string",
1405
- "description": "ISO 8601 last modification timestamp"
1406
- },
1407
- "parent_path": {
1408
- "type": "string",
1409
- "description": "Parent folder path"
1410
- },
1411
- "parent_id": {
1412
- "type": "string",
1413
- "description": "Parent folder ID"
1414
- },
1415
- "description": {
1416
- "type": "string",
1417
- "description": "Item description"
1418
- }
1419
- },
1420
- "required": [
1421
- "id",
1422
- "name",
1423
- "size",
1424
- "is_folder",
1425
- "mime_type",
1426
- "web_url",
1427
- "created_at",
1428
- "last_modified_at",
1429
- "parent_path",
1430
- "parent_id",
1431
- "description"
1432
- ],
1433
- "additionalProperties": false,
1434
- "description": "The moved item"
1435
- }
1436
- },
1437
- "required": [
1438
- "item"
1439
- ],
1440
- "additionalProperties": false
1441
- }
1442
- },
1443
- {
1444
- "name": "copy_item",
1445
- "displayName": "Copy Item",
1446
- "description": "Copy a file or folder. The copy operation is asynchronous — returns success immediately. The new copy appears in the destination folder shortly after.",
1447
- "summary": "Copy a file or folder",
1448
- "icon": "copy",
1449
- "group": "Files",
1450
- "input_schema": {
1451
- "type": "object",
1452
- "properties": {
1453
- "item_id": {
1454
- "type": "string",
1455
- "description": "ID of the file or folder to copy"
1456
- },
1457
- "destination_id": {
1458
- "type": "string",
1459
- "description": "ID of the destination folder"
1460
- },
1461
- "name": {
1462
- "description": "New name for the copy — defaults to original name",
1463
- "type": "string"
1464
- }
1465
- },
1466
- "required": [
1467
- "item_id",
1468
- "destination_id"
1469
- ],
1470
- "additionalProperties": false
1471
- },
1472
- "output_schema": {
1473
- "type": "object",
1474
- "properties": {
1475
- "success": {
1476
- "type": "boolean",
1477
- "description": "Whether the copy operation was accepted"
1478
- }
1479
- },
1480
- "required": [
1481
- "success"
1482
- ],
1483
- "additionalProperties": false
1484
- }
1485
- },
1486
- {
1487
- "name": "delete_item",
1488
- "displayName": "Delete Item",
1489
- "description": "Permanently delete a file or folder. This action cannot be undone.",
1490
- "summary": "Delete a file or folder",
1491
- "icon": "trash-2",
1492
- "group": "Files",
1493
- "input_schema": {
1494
- "type": "object",
1495
- "properties": {
1496
- "item_id": {
1497
- "type": "string",
1498
- "description": "ID of the file or folder to delete"
1499
- }
1500
- },
1501
- "required": [
1502
- "item_id"
1503
- ],
1504
- "additionalProperties": false
1505
- },
1506
- "output_schema": {
1507
- "type": "object",
1508
- "properties": {
1509
- "success": {
1510
- "type": "boolean",
1511
- "description": "Whether the deletion succeeded"
1512
- }
1513
- },
1514
- "required": [
1515
- "success"
1516
- ],
1517
- "additionalProperties": false
1518
- }
1519
- },
1520
- {
1521
- "name": "list_shared_with_me",
1522
- "displayName": "List Shared With Me",
1523
- "description": "List files and folders shared with the current user.",
1524
- "summary": "List files shared with me",
1525
- "icon": "users",
1526
- "group": "Files",
1527
- "input_schema": {
1528
- "type": "object",
1529
- "properties": {
1530
- "top": {
1531
- "description": "Max results (default 10, max 50)",
1532
- "type": "integer",
1533
- "minimum": 1,
1534
- "maximum": 50
1535
- }
1536
- },
1537
- "additionalProperties": false
1538
- },
1539
- "output_schema": {
1540
- "type": "object",
1541
- "properties": {
1542
- "items": {
1543
- "type": "array",
1544
- "items": {
1545
- "type": "object",
1546
- "properties": {
1547
- "id": {
1548
- "type": "string",
1549
- "description": "Item ID"
1550
- },
1551
- "name": {
1552
- "type": "string",
1553
- "description": "File or folder name"
1554
- },
1555
- "size": {
1556
- "type": "number",
1557
- "description": "Size in bytes (0 for folders)"
1558
- },
1559
- "is_folder": {
1560
- "type": "boolean",
1561
- "description": "Whether the item is a folder"
1562
- },
1563
- "mime_type": {
1564
- "type": "string",
1565
- "description": "MIME type (empty for folders)"
1566
- },
1567
- "web_url": {
1568
- "type": "string",
1569
- "description": "URL to open in browser"
1570
- },
1571
- "created_at": {
1572
- "type": "string",
1573
- "description": "ISO 8601 creation timestamp"
1574
- },
1575
- "last_modified_at": {
1576
- "type": "string",
1577
- "description": "ISO 8601 last modification timestamp"
1578
- },
1579
- "parent_path": {
1580
- "type": "string",
1581
- "description": "Parent folder path"
1582
- },
1583
- "parent_id": {
1584
- "type": "string",
1585
- "description": "Parent folder ID"
1586
- },
1587
- "description": {
1588
- "type": "string",
1589
- "description": "Item description"
1590
- }
1591
- },
1592
- "required": [
1593
- "id",
1594
- "name",
1595
- "size",
1596
- "is_folder",
1597
- "mime_type",
1598
- "web_url",
1599
- "created_at",
1600
- "last_modified_at",
1601
- "parent_path",
1602
- "parent_id",
1603
- "description"
1604
- ],
1605
- "additionalProperties": false
1606
- },
1607
- "description": "Shared files and folders"
1608
- }
1609
- },
1610
- "required": [
1611
- "items"
1612
- ],
1613
- "additionalProperties": false
1614
- }
1615
- },
1616
- {
1617
- "name": "get_preview_url",
1618
- "displayName": "Get Preview URL",
1619
- "description": "Get an embeddable preview URL for a document. Useful for generating view-only links.",
1620
- "summary": "Get a document preview URL",
1621
- "icon": "eye",
1622
- "group": "Files",
1623
- "input_schema": {
1624
- "type": "object",
1625
- "properties": {
1626
- "item_id": {
1627
- "type": "string",
1628
- "description": "File ID"
1629
- }
1630
- },
1631
- "required": [
1632
- "item_id"
1633
- ],
1634
- "additionalProperties": false
1635
- },
1636
- "output_schema": {
1637
- "type": "object",
1638
- "properties": {
1639
- "url": {
1640
- "type": "string",
1641
- "description": "Embeddable preview URL"
1642
- }
1643
- },
1644
- "required": [
1645
- "url"
1646
- ],
1647
- "additionalProperties": false
1648
- }
1649
- },
1650
- {
1651
- "name": "create_sharing_link",
1652
- "displayName": "Create Sharing Link",
1653
- "description": "Create a sharing link for a file or folder. Returns a URL that can be shared with others.",
1654
- "summary": "Create a sharing link for a file or folder",
1655
- "icon": "link",
1656
- "group": "Sharing",
1657
- "input_schema": {
1658
- "type": "object",
1659
- "properties": {
1660
- "item_id": {
1661
- "type": "string",
1662
- "description": "File or folder ID"
1663
- },
1664
- "type": {
1665
- "description": "Link type (default \"view\")",
1666
- "type": "string",
1667
- "enum": [
1668
- "view",
1669
- "edit",
1670
- "embed"
1671
- ]
1672
- },
1673
- "scope": {
1674
- "description": "Link scope (default \"anonymous\")",
1675
- "type": "string",
1676
- "enum": [
1677
- "anonymous",
1678
- "organization"
1679
- ]
1680
- }
1681
- },
1682
- "required": [
1683
- "item_id"
1684
- ],
1685
- "additionalProperties": false
1686
- },
1687
- "output_schema": {
1688
- "type": "object",
1689
- "properties": {
1690
- "permission": {
1691
- "type": "object",
1692
- "properties": {
1693
- "id": {
1694
- "type": "string",
1695
- "description": "Permission ID"
1696
- },
1697
- "roles": {
1698
- "type": "array",
1699
- "items": {
1700
- "type": "string"
1701
- },
1702
- "description": "Permission roles (read, write, owner)"
1703
- },
1704
- "link_url": {
1705
- "type": "string",
1706
- "description": "Sharing link URL (empty if not a link permission)"
1707
- },
1708
- "link_type": {
1709
- "type": "string",
1710
- "description": "Link type (view, edit, embed) — empty if not a link"
1711
- },
1712
- "granted_to": {
1713
- "type": "string",
1714
- "description": "Display name of the grantee — empty if anonymous link"
1715
- }
1716
- },
1717
- "required": [
1718
- "id",
1719
- "roles",
1720
- "link_url",
1721
- "link_type",
1722
- "granted_to"
1723
- ],
1724
- "additionalProperties": false,
1725
- "description": "The created sharing permission"
1726
- }
1727
- },
1728
- "required": [
1729
- "permission"
1730
- ],
1731
- "additionalProperties": false
1732
- }
1733
- },
1734
- {
1735
- "name": "list_permissions",
1736
- "displayName": "List Permissions",
1737
- "description": "List sharing permissions on a file or folder.",
1738
- "summary": "List sharing permissions",
1739
- "icon": "shield",
1740
- "group": "Sharing",
1741
- "input_schema": {
1742
- "type": "object",
1743
- "properties": {
1744
- "item_id": {
1745
- "type": "string",
1746
- "description": "File or folder ID"
1747
- }
1748
- },
1749
- "required": [
1750
- "item_id"
1751
- ],
1752
- "additionalProperties": false
1753
- },
1754
- "output_schema": {
1755
- "type": "object",
1756
- "properties": {
1757
- "permissions": {
1758
- "type": "array",
1759
- "items": {
1760
- "type": "object",
1761
- "properties": {
1762
- "id": {
1763
- "type": "string",
1764
- "description": "Permission ID"
1765
- },
1766
- "roles": {
1767
- "type": "array",
1768
- "items": {
1769
- "type": "string"
1770
- },
1771
- "description": "Permission roles (read, write, owner)"
1772
- },
1773
- "link_url": {
1774
- "type": "string",
1775
- "description": "Sharing link URL (empty if not a link permission)"
1776
- },
1777
- "link_type": {
1778
- "type": "string",
1779
- "description": "Link type (view, edit, embed) — empty if not a link"
1780
- },
1781
- "granted_to": {
1782
- "type": "string",
1783
- "description": "Display name of the grantee — empty if anonymous link"
1784
- }
1785
- },
1786
- "required": [
1787
- "id",
1788
- "roles",
1789
- "link_url",
1790
- "link_type",
1791
- "granted_to"
1792
- ],
1793
- "additionalProperties": false
1794
- },
1795
- "description": "Sharing permissions"
1796
- }
1797
- },
1798
- "required": [
1799
- "permissions"
1800
- ],
1801
- "additionalProperties": false
1802
- }
1803
- },
1804
- {
1805
- "name": "delete_permission",
1806
- "displayName": "Delete Permission",
1807
- "description": "Remove a sharing permission from a file or folder.",
1808
- "summary": "Remove a sharing permission",
1809
- "icon": "shield-x",
1810
- "group": "Sharing",
1811
- "input_schema": {
1812
- "type": "object",
1813
- "properties": {
1814
- "item_id": {
1815
- "type": "string",
1816
- "description": "File or folder ID"
1817
- },
1818
- "permission_id": {
1819
- "type": "string",
1820
- "description": "Permission ID to remove"
1821
- }
1822
- },
1823
- "required": [
1824
- "item_id",
1825
- "permission_id"
1826
- ],
1827
- "additionalProperties": false
1828
- },
1829
- "output_schema": {
1830
- "type": "object",
1831
- "properties": {
1832
- "success": {
1833
- "type": "boolean",
1834
- "description": "Whether the permission was removed"
1835
- }
1836
- },
1837
- "required": [
1838
- "success"
1839
- ],
1840
- "additionalProperties": false
1841
- }
1842
- },
1843
- {
1844
- "name": "list_versions",
1845
- "displayName": "List Versions",
1846
- "description": "List version history of a file.",
1847
- "summary": "List file version history",
1848
- "icon": "history",
1849
- "group": "Versions",
1850
- "input_schema": {
1851
- "type": "object",
1852
- "properties": {
1853
- "item_id": {
1854
- "type": "string",
1855
- "description": "File ID"
1856
- }
1857
- },
1858
- "required": [
1859
- "item_id"
1860
- ],
1861
- "additionalProperties": false
1862
- },
1863
- "output_schema": {
1864
- "type": "object",
1865
- "properties": {
1866
- "versions": {
1867
- "type": "array",
1868
- "items": {
1869
- "type": "object",
1870
- "properties": {
1871
- "id": {
1872
- "type": "string",
1873
- "description": "Version ID"
1874
- },
1875
- "last_modified_at": {
1876
- "type": "string",
1877
- "description": "ISO 8601 last modification timestamp"
1878
- },
1879
- "size": {
1880
- "type": "number",
1881
- "description": "Size in bytes"
1882
- }
1883
- },
1884
- "required": [
1885
- "id",
1886
- "last_modified_at",
1887
- "size"
1888
- ],
1889
- "additionalProperties": false
1890
- },
1891
- "description": "Version history entries"
1892
- }
1893
- },
1894
- "required": [
1895
- "versions"
1896
- ],
1897
- "additionalProperties": false
1898
- }
1899
- },
1900
- {
1901
- "name": "restore_version",
1902
- "displayName": "Restore Version",
1903
- "description": "Restore a file to a previous version.",
1904
- "summary": "Restore a file version",
1905
- "icon": "rotate-ccw",
1906
- "group": "Versions",
1907
- "input_schema": {
1908
- "type": "object",
1909
- "properties": {
1910
- "item_id": {
1911
- "type": "string",
1912
- "description": "File ID"
1913
- },
1914
- "version_id": {
1915
- "type": "string",
1916
- "description": "Version ID to restore"
1917
- }
1918
- },
1919
- "required": [
1920
- "item_id",
1921
- "version_id"
1922
- ],
1923
- "additionalProperties": false
1924
- },
1925
- "output_schema": {
1926
- "type": "object",
1927
- "properties": {
1928
- "success": {
1929
- "type": "boolean",
1930
- "description": "Whether the version was restored"
1931
- }
1932
- },
1933
- "required": [
1934
- "success"
1935
- ],
1936
- "additionalProperties": false
1937
- }
1938
- }
1939
- ]
1940
- }