google-mcp-suite 1.6.0 → 1.7.0

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 (523) hide show
  1. package/README.md +12 -7
  2. package/dist/doctor/services.d.ts.map +1 -1
  3. package/dist/doctor/services.js +13 -1
  4. package/dist/doctor/services.js.map +1 -1
  5. package/dist/drive/capabilities.d.ts +3 -0
  6. package/dist/drive/capabilities.d.ts.map +1 -0
  7. package/dist/drive/capabilities.js +21 -0
  8. package/dist/drive/capabilities.js.map +1 -0
  9. package/dist/drive/entities/About.d.ts +26 -0
  10. package/dist/drive/entities/About.d.ts.map +1 -0
  11. package/dist/drive/entities/About.js +31 -0
  12. package/dist/drive/entities/About.js.map +1 -0
  13. package/dist/drive/entities/Comment.d.ts +48 -0
  14. package/dist/drive/entities/Comment.d.ts.map +1 -0
  15. package/dist/drive/entities/Comment.js +53 -0
  16. package/dist/drive/entities/Comment.js.map +1 -0
  17. package/dist/drive/entities/File.d.ts +42 -0
  18. package/dist/drive/entities/File.d.ts.map +1 -0
  19. package/dist/drive/entities/File.js +75 -0
  20. package/dist/drive/entities/File.js.map +1 -0
  21. package/dist/drive/entities/Permission.d.ts +33 -0
  22. package/dist/drive/entities/Permission.d.ts.map +1 -0
  23. package/dist/drive/entities/Permission.js +32 -0
  24. package/dist/drive/entities/Permission.js.map +1 -0
  25. package/dist/drive/entities/Reply.d.ts +27 -0
  26. package/dist/drive/entities/Reply.d.ts.map +1 -0
  27. package/dist/drive/entities/Reply.js +39 -0
  28. package/dist/drive/entities/Reply.js.map +1 -0
  29. package/dist/drive/entities/Revision.d.ts +30 -0
  30. package/dist/drive/entities/Revision.d.ts.map +1 -0
  31. package/dist/drive/entities/Revision.js +62 -0
  32. package/dist/drive/entities/Revision.js.map +1 -0
  33. package/dist/drive/entities/SharedDrive.d.ts +28 -0
  34. package/dist/drive/entities/SharedDrive.d.ts.map +1 -0
  35. package/dist/drive/entities/SharedDrive.js +65 -0
  36. package/dist/drive/entities/SharedDrive.js.map +1 -0
  37. package/dist/drive/entities/User.d.ts +16 -0
  38. package/dist/drive/entities/User.d.ts.map +1 -0
  39. package/dist/drive/entities/User.js +25 -0
  40. package/dist/drive/entities/User.js.map +1 -0
  41. package/dist/drive/index.d.ts +3 -0
  42. package/dist/drive/index.d.ts.map +1 -0
  43. package/dist/drive/index.js +23 -0
  44. package/dist/drive/index.js.map +1 -0
  45. package/dist/drive/instructions.d.ts +2 -0
  46. package/dist/drive/instructions.d.ts.map +1 -0
  47. package/dist/drive/instructions.js +24 -0
  48. package/dist/drive/instructions.js.map +1 -0
  49. package/dist/drive/lib/comment.d.ts +15 -0
  50. package/dist/drive/lib/comment.d.ts.map +1 -0
  51. package/dist/drive/lib/comment.js +52 -0
  52. package/dist/drive/lib/comment.js.map +1 -0
  53. package/dist/drive/lib/content.d.ts +20 -0
  54. package/dist/drive/lib/content.d.ts.map +1 -0
  55. package/dist/drive/lib/content.js +41 -0
  56. package/dist/drive/lib/content.js.map +1 -0
  57. package/dist/drive/lib/file.d.ts +25 -0
  58. package/dist/drive/lib/file.d.ts.map +1 -0
  59. package/dist/drive/lib/file.js +62 -0
  60. package/dist/drive/lib/file.js.map +1 -0
  61. package/dist/drive/lib/query.d.ts +30 -0
  62. package/dist/drive/lib/query.d.ts.map +1 -0
  63. package/dist/drive/lib/query.js +104 -0
  64. package/dist/drive/lib/query.js.map +1 -0
  65. package/dist/drive/lib/revision.d.ts +7 -0
  66. package/dist/drive/lib/revision.d.ts.map +1 -0
  67. package/dist/drive/lib/revision.js +23 -0
  68. package/dist/drive/lib/revision.js.map +1 -0
  69. package/dist/drive/lib/shared-drive.d.ts +7 -0
  70. package/dist/drive/lib/shared-drive.d.ts.map +1 -0
  71. package/dist/drive/lib/shared-drive.js +26 -0
  72. package/dist/drive/lib/shared-drive.js.map +1 -0
  73. package/dist/drive/methods/create_comment/handler.d.ts +5 -0
  74. package/dist/drive/methods/create_comment/handler.d.ts.map +1 -0
  75. package/dist/drive/methods/create_comment/handler.js +11 -0
  76. package/dist/drive/methods/create_comment/handler.js.map +1 -0
  77. package/dist/drive/methods/create_comment/index.d.ts +43 -0
  78. package/dist/drive/methods/create_comment/index.d.ts.map +1 -0
  79. package/dist/drive/methods/create_comment/index.js +16 -0
  80. package/dist/drive/methods/create_comment/index.js.map +1 -0
  81. package/dist/drive/methods/create_comment/schema.d.ts +47 -0
  82. package/dist/drive/methods/create_comment/schema.d.ts.map +1 -0
  83. package/dist/drive/methods/create_comment/schema.js +14 -0
  84. package/dist/drive/methods/create_comment/schema.js.map +1 -0
  85. package/dist/drive/methods/create_reply/handler.d.ts +5 -0
  86. package/dist/drive/methods/create_reply/handler.d.ts.map +1 -0
  87. package/dist/drive/methods/create_reply/handler.js +15 -0
  88. package/dist/drive/methods/create_reply/handler.js.map +1 -0
  89. package/dist/drive/methods/create_reply/index.d.ts +27 -0
  90. package/dist/drive/methods/create_reply/index.d.ts.map +1 -0
  91. package/dist/drive/methods/create_reply/index.js +17 -0
  92. package/dist/drive/methods/create_reply/index.js.map +1 -0
  93. package/dist/drive/methods/create_reply/schema.d.ts +31 -0
  94. package/dist/drive/methods/create_reply/schema.d.ts.map +1 -0
  95. package/dist/drive/methods/create_reply/schema.js +18 -0
  96. package/dist/drive/methods/create_reply/schema.js.map +1 -0
  97. package/dist/drive/methods/create_shared_drive/handler.d.ts +5 -0
  98. package/dist/drive/methods/create_shared_drive/handler.d.ts.map +1 -0
  99. package/dist/drive/methods/create_shared_drive/handler.js +11 -0
  100. package/dist/drive/methods/create_shared_drive/handler.js.map +1 -0
  101. package/dist/drive/methods/create_shared_drive/index.d.ts +20 -0
  102. package/dist/drive/methods/create_shared_drive/index.d.ts.map +1 -0
  103. package/dist/drive/methods/create_shared_drive/index.js +16 -0
  104. package/dist/drive/methods/create_shared_drive/index.js.map +1 -0
  105. package/dist/drive/methods/create_shared_drive/schema.d.ts +24 -0
  106. package/dist/drive/methods/create_shared_drive/schema.d.ts.map +1 -0
  107. package/dist/drive/methods/create_shared_drive/schema.js +15 -0
  108. package/dist/drive/methods/create_shared_drive/schema.js.map +1 -0
  109. package/dist/drive/methods/delete_comment/handler.d.ts +5 -0
  110. package/dist/drive/methods/delete_comment/handler.d.ts.map +1 -0
  111. package/dist/drive/methods/delete_comment/handler.js +5 -0
  112. package/dist/drive/methods/delete_comment/handler.js.map +1 -0
  113. package/dist/drive/methods/delete_comment/index.d.ts +8 -0
  114. package/dist/drive/methods/delete_comment/index.d.ts.map +1 -0
  115. package/dist/drive/methods/delete_comment/index.js +16 -0
  116. package/dist/drive/methods/delete_comment/index.js.map +1 -0
  117. package/dist/drive/methods/delete_comment/schema.d.ts +13 -0
  118. package/dist/drive/methods/delete_comment/schema.d.ts.map +1 -0
  119. package/dist/drive/methods/delete_comment/schema.js +13 -0
  120. package/dist/drive/methods/delete_comment/schema.js.map +1 -0
  121. package/dist/drive/methods/delete_file/handler.d.ts +5 -0
  122. package/dist/drive/methods/delete_file/handler.d.ts.map +1 -0
  123. package/dist/drive/methods/delete_file/handler.js +5 -0
  124. package/dist/drive/methods/delete_file/handler.js.map +1 -0
  125. package/dist/drive/methods/delete_file/index.d.ts +6 -0
  126. package/dist/drive/methods/delete_file/index.d.ts.map +1 -0
  127. package/dist/drive/methods/delete_file/index.js +19 -0
  128. package/dist/drive/methods/delete_file/index.js.map +1 -0
  129. package/dist/drive/methods/delete_file/schema.d.ts +11 -0
  130. package/dist/drive/methods/delete_file/schema.d.ts.map +1 -0
  131. package/dist/drive/methods/delete_file/schema.js +11 -0
  132. package/dist/drive/methods/delete_file/schema.js.map +1 -0
  133. package/dist/drive/methods/delete_reply/handler.d.ts +5 -0
  134. package/dist/drive/methods/delete_reply/handler.d.ts.map +1 -0
  135. package/dist/drive/methods/delete_reply/handler.js +9 -0
  136. package/dist/drive/methods/delete_reply/handler.js.map +1 -0
  137. package/dist/drive/methods/delete_reply/index.d.ts +10 -0
  138. package/dist/drive/methods/delete_reply/index.d.ts.map +1 -0
  139. package/dist/drive/methods/delete_reply/index.js +16 -0
  140. package/dist/drive/methods/delete_reply/index.js.map +1 -0
  141. package/dist/drive/methods/delete_reply/schema.d.ts +15 -0
  142. package/dist/drive/methods/delete_reply/schema.d.ts.map +1 -0
  143. package/dist/drive/methods/delete_reply/schema.js +15 -0
  144. package/dist/drive/methods/delete_reply/schema.js.map +1 -0
  145. package/dist/drive/methods/delete_revision/handler.d.ts +5 -0
  146. package/dist/drive/methods/delete_revision/handler.d.ts.map +1 -0
  147. package/dist/drive/methods/delete_revision/handler.js +5 -0
  148. package/dist/drive/methods/delete_revision/handler.js.map +1 -0
  149. package/dist/drive/methods/delete_revision/index.d.ts +8 -0
  150. package/dist/drive/methods/delete_revision/index.d.ts.map +1 -0
  151. package/dist/drive/methods/delete_revision/index.js +18 -0
  152. package/dist/drive/methods/delete_revision/index.js.map +1 -0
  153. package/dist/drive/methods/delete_revision/schema.d.ts +13 -0
  154. package/dist/drive/methods/delete_revision/schema.d.ts.map +1 -0
  155. package/dist/drive/methods/delete_revision/schema.js +13 -0
  156. package/dist/drive/methods/delete_revision/schema.js.map +1 -0
  157. package/dist/drive/methods/delete_shared_drive/handler.d.ts +5 -0
  158. package/dist/drive/methods/delete_shared_drive/handler.d.ts.map +1 -0
  159. package/dist/drive/methods/delete_shared_drive/handler.js +10 -0
  160. package/dist/drive/methods/delete_shared_drive/handler.js.map +1 -0
  161. package/dist/drive/methods/delete_shared_drive/index.d.ts +8 -0
  162. package/dist/drive/methods/delete_shared_drive/index.d.ts.map +1 -0
  163. package/dist/drive/methods/delete_shared_drive/index.js +17 -0
  164. package/dist/drive/methods/delete_shared_drive/index.js.map +1 -0
  165. package/dist/drive/methods/delete_shared_drive/schema.d.ts +13 -0
  166. package/dist/drive/methods/delete_shared_drive/schema.d.ts.map +1 -0
  167. package/dist/drive/methods/delete_shared_drive/schema.js +22 -0
  168. package/dist/drive/methods/delete_shared_drive/schema.js.map +1 -0
  169. package/dist/drive/methods/empty_trash/handler.d.ts +5 -0
  170. package/dist/drive/methods/empty_trash/handler.d.ts.map +1 -0
  171. package/dist/drive/methods/empty_trash/handler.js +6 -0
  172. package/dist/drive/methods/empty_trash/handler.js.map +1 -0
  173. package/dist/drive/methods/empty_trash/index.d.ts +6 -0
  174. package/dist/drive/methods/empty_trash/index.d.ts.map +1 -0
  175. package/dist/drive/methods/empty_trash/index.js +17 -0
  176. package/dist/drive/methods/empty_trash/index.js.map +1 -0
  177. package/dist/drive/methods/empty_trash/schema.d.ts +11 -0
  178. package/dist/drive/methods/empty_trash/schema.d.ts.map +1 -0
  179. package/dist/drive/methods/empty_trash/schema.js +14 -0
  180. package/dist/drive/methods/empty_trash/schema.js.map +1 -0
  181. package/dist/drive/methods/get_about/handler.d.ts +5 -0
  182. package/dist/drive/methods/get_about/handler.d.ts.map +1 -0
  183. package/dist/drive/methods/get_about/handler.js +30 -0
  184. package/dist/drive/methods/get_about/handler.js.map +1 -0
  185. package/dist/drive/methods/get_about/index.d.ts +17 -0
  186. package/dist/drive/methods/get_about/index.d.ts.map +1 -0
  187. package/dist/drive/methods/get_about/index.js +17 -0
  188. package/dist/drive/methods/get_about/index.js.map +1 -0
  189. package/dist/drive/methods/get_about/schema.d.ts +21 -0
  190. package/dist/drive/methods/get_about/schema.d.ts.map +1 -0
  191. package/dist/drive/methods/get_about/schema.js +7 -0
  192. package/dist/drive/methods/get_about/schema.js.map +1 -0
  193. package/dist/drive/methods/get_comment/handler.d.ts +5 -0
  194. package/dist/drive/methods/get_comment/handler.d.ts.map +1 -0
  195. package/dist/drive/methods/get_comment/handler.js +12 -0
  196. package/dist/drive/methods/get_comment/handler.js.map +1 -0
  197. package/dist/drive/methods/get_comment/index.d.ts +43 -0
  198. package/dist/drive/methods/get_comment/index.d.ts.map +1 -0
  199. package/dist/drive/methods/get_comment/index.js +16 -0
  200. package/dist/drive/methods/get_comment/index.js.map +1 -0
  201. package/dist/drive/methods/get_comment/schema.d.ts +47 -0
  202. package/dist/drive/methods/get_comment/schema.d.ts.map +1 -0
  203. package/dist/drive/methods/get_comment/schema.js +14 -0
  204. package/dist/drive/methods/get_comment/schema.js.map +1 -0
  205. package/dist/drive/methods/get_reply/handler.d.ts +5 -0
  206. package/dist/drive/methods/get_reply/handler.d.ts.map +1 -0
  207. package/dist/drive/methods/get_reply/handler.js +13 -0
  208. package/dist/drive/methods/get_reply/handler.js.map +1 -0
  209. package/dist/drive/methods/get_reply/index.d.ts +24 -0
  210. package/dist/drive/methods/get_reply/index.d.ts.map +1 -0
  211. package/dist/drive/methods/get_reply/index.js +16 -0
  212. package/dist/drive/methods/get_reply/index.js.map +1 -0
  213. package/dist/drive/methods/get_reply/schema.d.ts +28 -0
  214. package/dist/drive/methods/get_reply/schema.d.ts.map +1 -0
  215. package/dist/drive/methods/get_reply/schema.js +15 -0
  216. package/dist/drive/methods/get_reply/schema.js.map +1 -0
  217. package/dist/drive/methods/get_revision/handler.d.ts +5 -0
  218. package/dist/drive/methods/get_revision/handler.d.ts.map +1 -0
  219. package/dist/drive/methods/get_revision/handler.js +10 -0
  220. package/dist/drive/methods/get_revision/handler.js.map +1 -0
  221. package/dist/drive/methods/get_revision/index.d.ts +23 -0
  222. package/dist/drive/methods/get_revision/index.d.ts.map +1 -0
  223. package/dist/drive/methods/get_revision/index.js +16 -0
  224. package/dist/drive/methods/get_revision/index.js.map +1 -0
  225. package/dist/drive/methods/get_revision/schema.d.ts +27 -0
  226. package/dist/drive/methods/get_revision/schema.d.ts.map +1 -0
  227. package/dist/drive/methods/get_revision/schema.js +10 -0
  228. package/dist/drive/methods/get_revision/schema.js.map +1 -0
  229. package/dist/drive/methods/get_shared_drive/handler.d.ts +5 -0
  230. package/dist/drive/methods/get_shared_drive/handler.d.ts.map +1 -0
  231. package/dist/drive/methods/get_shared_drive/handler.js +11 -0
  232. package/dist/drive/methods/get_shared_drive/handler.js.map +1 -0
  233. package/dist/drive/methods/get_shared_drive/index.d.ts +20 -0
  234. package/dist/drive/methods/get_shared_drive/index.d.ts.map +1 -0
  235. package/dist/drive/methods/get_shared_drive/index.js +16 -0
  236. package/dist/drive/methods/get_shared_drive/index.js.map +1 -0
  237. package/dist/drive/methods/get_shared_drive/schema.d.ts +24 -0
  238. package/dist/drive/methods/get_shared_drive/schema.d.ts.map +1 -0
  239. package/dist/drive/methods/get_shared_drive/schema.js +15 -0
  240. package/dist/drive/methods/get_shared_drive/schema.js.map +1 -0
  241. package/dist/drive/methods/hide_shared_drive/handler.d.ts +5 -0
  242. package/dist/drive/methods/hide_shared_drive/handler.d.ts.map +1 -0
  243. package/dist/drive/methods/hide_shared_drive/handler.js +9 -0
  244. package/dist/drive/methods/hide_shared_drive/handler.js.map +1 -0
  245. package/dist/drive/methods/hide_shared_drive/index.d.ts +19 -0
  246. package/dist/drive/methods/hide_shared_drive/index.d.ts.map +1 -0
  247. package/dist/drive/methods/hide_shared_drive/index.js +16 -0
  248. package/dist/drive/methods/hide_shared_drive/index.js.map +1 -0
  249. package/dist/drive/methods/hide_shared_drive/schema.d.ts +23 -0
  250. package/dist/drive/methods/hide_shared_drive/schema.d.ts.map +1 -0
  251. package/dist/drive/methods/hide_shared_drive/schema.js +9 -0
  252. package/dist/drive/methods/hide_shared_drive/schema.js.map +1 -0
  253. package/dist/drive/methods/list_comments/handler.d.ts +5 -0
  254. package/dist/drive/methods/list_comments/handler.d.ts.map +1 -0
  255. package/dist/drive/methods/list_comments/handler.js +17 -0
  256. package/dist/drive/methods/list_comments/handler.js.map +1 -0
  257. package/dist/drive/methods/list_comments/index.d.ts +48 -0
  258. package/dist/drive/methods/list_comments/index.d.ts.map +1 -0
  259. package/dist/drive/methods/list_comments/index.js +16 -0
  260. package/dist/drive/methods/list_comments/index.js.map +1 -0
  261. package/dist/drive/methods/list_comments/schema.d.ts +52 -0
  262. package/dist/drive/methods/list_comments/schema.d.ts.map +1 -0
  263. package/dist/drive/methods/list_comments/schema.js +34 -0
  264. package/dist/drive/methods/list_comments/schema.js.map +1 -0
  265. package/dist/drive/methods/list_replies/handler.d.ts +5 -0
  266. package/dist/drive/methods/list_replies/handler.d.ts.map +1 -0
  267. package/dist/drive/methods/list_replies/handler.js +17 -0
  268. package/dist/drive/methods/list_replies/handler.js.map +1 -0
  269. package/dist/drive/methods/list_replies/index.d.ts +28 -0
  270. package/dist/drive/methods/list_replies/index.d.ts.map +1 -0
  271. package/dist/drive/methods/list_replies/index.js +16 -0
  272. package/dist/drive/methods/list_replies/index.js.map +1 -0
  273. package/dist/drive/methods/list_replies/schema.d.ts +32 -0
  274. package/dist/drive/methods/list_replies/schema.d.ts.map +1 -0
  275. package/dist/drive/methods/list_replies/schema.js +31 -0
  276. package/dist/drive/methods/list_replies/schema.js.map +1 -0
  277. package/dist/drive/methods/list_revisions/handler.d.ts +5 -0
  278. package/dist/drive/methods/list_revisions/handler.d.ts.map +1 -0
  279. package/dist/drive/methods/list_revisions/handler.js +15 -0
  280. package/dist/drive/methods/list_revisions/handler.js.map +1 -0
  281. package/dist/drive/methods/list_revisions/index.d.ts +27 -0
  282. package/dist/drive/methods/list_revisions/index.d.ts.map +1 -0
  283. package/dist/drive/methods/list_revisions/index.js +17 -0
  284. package/dist/drive/methods/list_revisions/index.js.map +1 -0
  285. package/dist/drive/methods/list_revisions/schema.d.ts +31 -0
  286. package/dist/drive/methods/list_revisions/schema.d.ts.map +1 -0
  287. package/dist/drive/methods/list_revisions/schema.js +30 -0
  288. package/dist/drive/methods/list_revisions/schema.js.map +1 -0
  289. package/dist/drive/methods/list_shared_drives/handler.d.ts +5 -0
  290. package/dist/drive/methods/list_shared_drives/handler.d.ts.map +1 -0
  291. package/dist/drive/methods/list_shared_drives/handler.js +16 -0
  292. package/dist/drive/methods/list_shared_drives/handler.js.map +1 -0
  293. package/dist/drive/methods/list_shared_drives/index.d.ts +25 -0
  294. package/dist/drive/methods/list_shared_drives/index.d.ts.map +1 -0
  295. package/dist/drive/methods/list_shared_drives/index.js +16 -0
  296. package/dist/drive/methods/list_shared_drives/index.js.map +1 -0
  297. package/dist/drive/methods/list_shared_drives/schema.d.ts +29 -0
  298. package/dist/drive/methods/list_shared_drives/schema.d.ts.map +1 -0
  299. package/dist/drive/methods/list_shared_drives/schema.js +27 -0
  300. package/dist/drive/methods/list_shared_drives/schema.js.map +1 -0
  301. package/dist/drive/methods/registry.d.ts +619 -0
  302. package/dist/drive/methods/registry.d.ts.map +1 -0
  303. package/dist/drive/methods/registry.js +69 -0
  304. package/dist/drive/methods/registry.js.map +1 -0
  305. package/dist/drive/methods/trash_file/handler.d.ts +5 -0
  306. package/dist/drive/methods/trash_file/handler.d.ts.map +1 -0
  307. package/dist/drive/methods/trash_file/handler.js +11 -0
  308. package/dist/drive/methods/trash_file/handler.js.map +1 -0
  309. package/dist/drive/methods/trash_file/index.d.ts +25 -0
  310. package/dist/drive/methods/trash_file/index.d.ts.map +1 -0
  311. package/dist/drive/methods/trash_file/index.js +18 -0
  312. package/dist/drive/methods/trash_file/index.js.map +1 -0
  313. package/dist/drive/methods/trash_file/schema.d.ts +29 -0
  314. package/dist/drive/methods/trash_file/schema.d.ts.map +1 -0
  315. package/dist/drive/methods/trash_file/schema.js +9 -0
  316. package/dist/drive/methods/trash_file/schema.js.map +1 -0
  317. package/dist/drive/methods/unhide_shared_drive/handler.d.ts +5 -0
  318. package/dist/drive/methods/unhide_shared_drive/handler.d.ts.map +1 -0
  319. package/dist/drive/methods/unhide_shared_drive/handler.js +9 -0
  320. package/dist/drive/methods/unhide_shared_drive/handler.js.map +1 -0
  321. package/dist/drive/methods/unhide_shared_drive/index.d.ts +19 -0
  322. package/dist/drive/methods/unhide_shared_drive/index.d.ts.map +1 -0
  323. package/dist/drive/methods/unhide_shared_drive/index.js +16 -0
  324. package/dist/drive/methods/unhide_shared_drive/index.js.map +1 -0
  325. package/dist/drive/methods/unhide_shared_drive/schema.d.ts +23 -0
  326. package/dist/drive/methods/unhide_shared_drive/schema.d.ts.map +1 -0
  327. package/dist/drive/methods/unhide_shared_drive/schema.js +9 -0
  328. package/dist/drive/methods/unhide_shared_drive/schema.js.map +1 -0
  329. package/dist/drive/methods/untrash_file/handler.d.ts +5 -0
  330. package/dist/drive/methods/untrash_file/handler.d.ts.map +1 -0
  331. package/dist/drive/methods/untrash_file/handler.js +11 -0
  332. package/dist/drive/methods/untrash_file/handler.js.map +1 -0
  333. package/dist/drive/methods/untrash_file/index.d.ts +25 -0
  334. package/dist/drive/methods/untrash_file/index.d.ts.map +1 -0
  335. package/dist/drive/methods/untrash_file/index.js +17 -0
  336. package/dist/drive/methods/untrash_file/index.js.map +1 -0
  337. package/dist/drive/methods/untrash_file/schema.d.ts +29 -0
  338. package/dist/drive/methods/untrash_file/schema.d.ts.map +1 -0
  339. package/dist/drive/methods/untrash_file/schema.js +9 -0
  340. package/dist/drive/methods/untrash_file/schema.js.map +1 -0
  341. package/dist/drive/methods/update_comment/handler.d.ts +5 -0
  342. package/dist/drive/methods/update_comment/handler.d.ts.map +1 -0
  343. package/dist/drive/methods/update_comment/handler.js +11 -0
  344. package/dist/drive/methods/update_comment/handler.js.map +1 -0
  345. package/dist/drive/methods/update_comment/index.d.ts +43 -0
  346. package/dist/drive/methods/update_comment/index.d.ts.map +1 -0
  347. package/dist/drive/methods/update_comment/index.js +16 -0
  348. package/dist/drive/methods/update_comment/index.js.map +1 -0
  349. package/dist/drive/methods/update_comment/schema.d.ts +47 -0
  350. package/dist/drive/methods/update_comment/schema.d.ts.map +1 -0
  351. package/dist/drive/methods/update_comment/schema.js +11 -0
  352. package/dist/drive/methods/update_comment/schema.js.map +1 -0
  353. package/dist/drive/methods/update_file/handler.d.ts +5 -0
  354. package/dist/drive/methods/update_file/handler.d.ts.map +1 -0
  355. package/dist/drive/methods/update_file/handler.js +21 -0
  356. package/dist/drive/methods/update_file/handler.js.map +1 -0
  357. package/dist/drive/methods/update_file/index.d.ts +33 -0
  358. package/dist/drive/methods/update_file/index.d.ts.map +1 -0
  359. package/dist/drive/methods/update_file/index.js +19 -0
  360. package/dist/drive/methods/update_file/index.js.map +1 -0
  361. package/dist/drive/methods/update_file/schema.d.ts +37 -0
  362. package/dist/drive/methods/update_file/schema.d.ts.map +1 -0
  363. package/dist/drive/methods/update_file/schema.js +35 -0
  364. package/dist/drive/methods/update_file/schema.js.map +1 -0
  365. package/dist/drive/methods/update_reply/handler.d.ts +5 -0
  366. package/dist/drive/methods/update_reply/handler.d.ts.map +1 -0
  367. package/dist/drive/methods/update_reply/handler.js +12 -0
  368. package/dist/drive/methods/update_reply/handler.js.map +1 -0
  369. package/dist/drive/methods/update_reply/index.d.ts +24 -0
  370. package/dist/drive/methods/update_reply/index.d.ts.map +1 -0
  371. package/dist/drive/methods/update_reply/index.js +16 -0
  372. package/dist/drive/methods/update_reply/index.js.map +1 -0
  373. package/dist/drive/methods/update_reply/schema.d.ts +28 -0
  374. package/dist/drive/methods/update_reply/schema.d.ts.map +1 -0
  375. package/dist/drive/methods/update_reply/schema.js +12 -0
  376. package/dist/drive/methods/update_reply/schema.js.map +1 -0
  377. package/dist/drive/methods/update_revision/handler.d.ts +5 -0
  378. package/dist/drive/methods/update_revision/handler.d.ts.map +1 -0
  379. package/dist/drive/methods/update_revision/handler.js +17 -0
  380. package/dist/drive/methods/update_revision/handler.js.map +1 -0
  381. package/dist/drive/methods/update_revision/index.d.ts +27 -0
  382. package/dist/drive/methods/update_revision/index.d.ts.map +1 -0
  383. package/dist/drive/methods/update_revision/index.js +17 -0
  384. package/dist/drive/methods/update_revision/index.js.map +1 -0
  385. package/dist/drive/methods/update_revision/schema.d.ts +31 -0
  386. package/dist/drive/methods/update_revision/schema.d.ts.map +1 -0
  387. package/dist/drive/methods/update_revision/schema.js +29 -0
  388. package/dist/drive/methods/update_revision/schema.js.map +1 -0
  389. package/dist/drive/methods/update_shared_drive/handler.d.ts +5 -0
  390. package/dist/drive/methods/update_shared_drive/handler.d.ts.map +1 -0
  391. package/dist/drive/methods/update_shared_drive/handler.js +17 -0
  392. package/dist/drive/methods/update_shared_drive/handler.js.map +1 -0
  393. package/dist/drive/methods/update_shared_drive/index.d.ts +30 -0
  394. package/dist/drive/methods/update_shared_drive/index.d.ts.map +1 -0
  395. package/dist/drive/methods/update_shared_drive/index.js +17 -0
  396. package/dist/drive/methods/update_shared_drive/index.js.map +1 -0
  397. package/dist/drive/methods/update_shared_drive/schema.d.ts +34 -0
  398. package/dist/drive/methods/update_shared_drive/schema.d.ts.map +1 -0
  399. package/dist/drive/methods/update_shared_drive/schema.js +53 -0
  400. package/dist/drive/methods/update_shared_drive/schema.js.map +1 -0
  401. package/dist/drive/operation.d.ts +12 -0
  402. package/dist/drive/operation.d.ts.map +1 -0
  403. package/dist/drive/operation.js +10 -0
  404. package/dist/drive/operation.js.map +1 -0
  405. package/dist/drive/tools/copy_file/handler.d.ts +5 -0
  406. package/dist/drive/tools/copy_file/handler.d.ts.map +1 -0
  407. package/dist/drive/tools/copy_file/handler.js +15 -0
  408. package/dist/drive/tools/copy_file/handler.js.map +1 -0
  409. package/dist/drive/tools/copy_file/index.d.ts +27 -0
  410. package/dist/drive/tools/copy_file/index.d.ts.map +1 -0
  411. package/dist/drive/tools/copy_file/index.js +18 -0
  412. package/dist/drive/tools/copy_file/index.js.map +1 -0
  413. package/dist/drive/tools/copy_file/schema.d.ts +31 -0
  414. package/dist/drive/tools/copy_file/schema.d.ts.map +1 -0
  415. package/dist/drive/tools/copy_file/schema.js +18 -0
  416. package/dist/drive/tools/copy_file/schema.js.map +1 -0
  417. package/dist/drive/tools/create_file/handler.d.ts +5 -0
  418. package/dist/drive/tools/create_file/handler.d.ts.map +1 -0
  419. package/dist/drive/tools/create_file/handler.js +42 -0
  420. package/dist/drive/tools/create_file/handler.js.map +1 -0
  421. package/dist/drive/tools/create_file/index.d.ts +30 -0
  422. package/dist/drive/tools/create_file/index.d.ts.map +1 -0
  423. package/dist/drive/tools/create_file/index.js +19 -0
  424. package/dist/drive/tools/create_file/index.js.map +1 -0
  425. package/dist/drive/tools/create_file/schema.d.ts +34 -0
  426. package/dist/drive/tools/create_file/schema.d.ts.map +1 -0
  427. package/dist/drive/tools/create_file/schema.js +29 -0
  428. package/dist/drive/tools/create_file/schema.js.map +1 -0
  429. package/dist/drive/tools/download_file_content/handler.d.ts +5 -0
  430. package/dist/drive/tools/download_file_content/handler.d.ts.map +1 -0
  431. package/dist/drive/tools/download_file_content/handler.js +33 -0
  432. package/dist/drive/tools/download_file_content/handler.js.map +1 -0
  433. package/dist/drive/tools/download_file_content/index.d.ts +10 -0
  434. package/dist/drive/tools/download_file_content/index.d.ts.map +1 -0
  435. package/dist/drive/tools/download_file_content/index.js +19 -0
  436. package/dist/drive/tools/download_file_content/index.js.map +1 -0
  437. package/dist/drive/tools/download_file_content/schema.d.ts +14 -0
  438. package/dist/drive/tools/download_file_content/schema.d.ts.map +1 -0
  439. package/dist/drive/tools/download_file_content/schema.js +18 -0
  440. package/dist/drive/tools/download_file_content/schema.js.map +1 -0
  441. package/dist/drive/tools/get_file_metadata/handler.d.ts +5 -0
  442. package/dist/drive/tools/get_file_metadata/handler.d.ts.map +1 -0
  443. package/dist/drive/tools/get_file_metadata/handler.js +10 -0
  444. package/dist/drive/tools/get_file_metadata/handler.js.map +1 -0
  445. package/dist/drive/tools/get_file_metadata/index.d.ts +26 -0
  446. package/dist/drive/tools/get_file_metadata/index.d.ts.map +1 -0
  447. package/dist/drive/tools/get_file_metadata/index.js +17 -0
  448. package/dist/drive/tools/get_file_metadata/index.js.map +1 -0
  449. package/dist/drive/tools/get_file_metadata/schema.d.ts +30 -0
  450. package/dist/drive/tools/get_file_metadata/schema.d.ts.map +1 -0
  451. package/dist/drive/tools/get_file_metadata/schema.js +15 -0
  452. package/dist/drive/tools/get_file_metadata/schema.js.map +1 -0
  453. package/dist/drive/tools/get_file_permissions/handler.d.ts +5 -0
  454. package/dist/drive/tools/get_file_permissions/handler.d.ts.map +1 -0
  455. package/dist/drive/tools/get_file_permissions/handler.js +20 -0
  456. package/dist/drive/tools/get_file_permissions/handler.js.map +1 -0
  457. package/dist/drive/tools/get_file_permissions/index.d.ts +27 -0
  458. package/dist/drive/tools/get_file_permissions/index.d.ts.map +1 -0
  459. package/dist/drive/tools/get_file_permissions/index.js +16 -0
  460. package/dist/drive/tools/get_file_permissions/index.js.map +1 -0
  461. package/dist/drive/tools/get_file_permissions/schema.d.ts +31 -0
  462. package/dist/drive/tools/get_file_permissions/schema.d.ts.map +1 -0
  463. package/dist/drive/tools/get_file_permissions/schema.js +11 -0
  464. package/dist/drive/tools/get_file_permissions/schema.js.map +1 -0
  465. package/dist/drive/tools/list_recent_files/handler.d.ts +5 -0
  466. package/dist/drive/tools/list_recent_files/handler.d.ts.map +1 -0
  467. package/dist/drive/tools/list_recent_files/handler.js +23 -0
  468. package/dist/drive/tools/list_recent_files/handler.js.map +1 -0
  469. package/dist/drive/tools/list_recent_files/index.d.ts +35 -0
  470. package/dist/drive/tools/list_recent_files/index.d.ts.map +1 -0
  471. package/dist/drive/tools/list_recent_files/index.js +16 -0
  472. package/dist/drive/tools/list_recent_files/index.js.map +1 -0
  473. package/dist/drive/tools/list_recent_files/schema.d.ts +39 -0
  474. package/dist/drive/tools/list_recent_files/schema.d.ts.map +1 -0
  475. package/dist/drive/tools/list_recent_files/schema.js +29 -0
  476. package/dist/drive/tools/list_recent_files/schema.js.map +1 -0
  477. package/dist/drive/tools/read_file_content/handler.d.ts +5 -0
  478. package/dist/drive/tools/read_file_content/handler.d.ts.map +1 -0
  479. package/dist/drive/tools/read_file_content/handler.js +24 -0
  480. package/dist/drive/tools/read_file_content/handler.js.map +1 -0
  481. package/dist/drive/tools/read_file_content/index.d.ts +6 -0
  482. package/dist/drive/tools/read_file_content/index.d.ts.map +1 -0
  483. package/dist/drive/tools/read_file_content/index.js +19 -0
  484. package/dist/drive/tools/read_file_content/index.js.map +1 -0
  485. package/dist/drive/tools/read_file_content/schema.d.ts +10 -0
  486. package/dist/drive/tools/read_file_content/schema.d.ts.map +1 -0
  487. package/dist/drive/tools/read_file_content/schema.js +10 -0
  488. package/dist/drive/tools/read_file_content/schema.js.map +1 -0
  489. package/dist/drive/tools/registry.d.ts +193 -0
  490. package/dist/drive/tools/registry.d.ts.map +1 -0
  491. package/dist/drive/tools/registry.js +24 -0
  492. package/dist/drive/tools/registry.js.map +1 -0
  493. package/dist/drive/tools/search_files/handler.d.ts +5 -0
  494. package/dist/drive/tools/search_files/handler.d.ts.map +1 -0
  495. package/dist/drive/tools/search_files/handler.js +18 -0
  496. package/dist/drive/tools/search_files/handler.js.map +1 -0
  497. package/dist/drive/tools/search_files/index.d.ts +31 -0
  498. package/dist/drive/tools/search_files/index.d.ts.map +1 -0
  499. package/dist/drive/tools/search_files/index.js +17 -0
  500. package/dist/drive/tools/search_files/index.js.map +1 -0
  501. package/dist/drive/tools/search_files/schema.d.ts +35 -0
  502. package/dist/drive/tools/search_files/schema.d.ts.map +1 -0
  503. package/dist/drive/tools/search_files/schema.js +27 -0
  504. package/dist/drive/tools/search_files/schema.js.map +1 -0
  505. package/dist/{sheets/lib → lib}/enums.d.ts +1 -1
  506. package/dist/lib/enums.d.ts.map +1 -0
  507. package/dist/{sheets/lib → lib}/enums.js +1 -1
  508. package/dist/lib/enums.js.map +1 -0
  509. package/dist/sheets/lib/filters.d.ts.map +1 -1
  510. package/dist/sheets/lib/filters.js +1 -1
  511. package/dist/sheets/lib/filters.js.map +1 -1
  512. package/dist/sheets/lib/metadata.d.ts.map +1 -1
  513. package/dist/sheets/lib/metadata.js +1 -1
  514. package/dist/sheets/lib/metadata.js.map +1 -1
  515. package/dist/sheets/lib/spreadsheet.d.ts.map +1 -1
  516. package/dist/sheets/lib/spreadsheet.js +1 -1
  517. package/dist/sheets/lib/spreadsheet.js.map +1 -1
  518. package/dist/sheets/lib/values.d.ts.map +1 -1
  519. package/dist/sheets/lib/values.js +1 -1
  520. package/dist/sheets/lib/values.js.map +1 -1
  521. package/package.json +9 -3
  522. package/dist/sheets/lib/enums.d.ts.map +0 -1
  523. package/dist/sheets/lib/enums.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ export declare const download_file_content: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
2
+ fileId: import("zod").ZodString;
3
+ exportMimeType: import("zod").ZodOptional<import("zod").ZodString>;
4
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
5
+ id: import("zod").ZodString;
6
+ title: import("zod").ZodOptional<import("zod").ZodString>;
7
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
8
+ content: import("zod").ZodString;
9
+ }, import("zod/v4/core").$strip>>;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/download_file_content/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;;;;;iCAgBhC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { driveOperation } from '../../operation.js';
2
+ import { handler } from './handler.js';
3
+ import { schema } from './schema.js';
4
+ export const download_file_content = driveOperation({
5
+ description: 'Download the content of a Drive file as a base64 encoded string. For Google Drive ' +
6
+ 'native file types, exportMimeType determines the output format (default text). For a ' +
7
+ 'natural language representation of Drive content, prefer read_file_content; if a file ' +
8
+ 'is not found, use search_files.',
9
+ annotations: {
10
+ readOnlyHint: true,
11
+ destructiveHint: false,
12
+ idempotentHint: true,
13
+ openWorldHint: false,
14
+ },
15
+ source: 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/download_file_content',
16
+ schema,
17
+ handler,
18
+ });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/tools/download_file_content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC;IAClD,WAAW,EACT,oFAAoF;QACpF,uFAAuF;QACvF,wFAAwF;QACxF,iCAAiC;IACnC,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,kGAAkG;IACpG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { driveOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\nexport const download_file_content = driveOperation({\n description:\n 'Download the content of a Drive file as a base64 encoded string. For Google Drive ' +\n 'native file types, exportMimeType determines the output format (default text). For a ' +\n 'natural language representation of Drive content, prefer read_file_content; if a file ' +\n 'is not found, use search_files.',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/download_file_content',\n schema,\n handler,\n});\n"]}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare const schema: {
3
+ input: z.ZodObject<{
4
+ fileId: z.ZodString;
5
+ exportMimeType: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ output: z.ZodObject<{
8
+ id: z.ZodString;
9
+ title: z.ZodOptional<z.ZodString>;
10
+ mimeType: z.ZodOptional<z.ZodString>;
11
+ content: z.ZodString;
12
+ }, z.core.$strip>;
13
+ };
14
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/download_file_content/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,MAAM;;;;;;;;;;;CAiBlB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export const schema = {
3
+ input: z.object({
4
+ fileId: z.string().describe('The ID of the file to retrieve.'),
5
+ exportMimeType: z
6
+ .string()
7
+ .optional()
8
+ .describe('For Google native files, the MIME type to export the file to, ignored otherwise. ' +
9
+ 'Defaults to text if not specified.'),
10
+ }),
11
+ output: z.object({
12
+ id: z.string().describe('The id of the file that was fetched.'),
13
+ title: z.string().optional().describe('The title of the file.'),
14
+ mimeType: z.string().optional().describe('The mime type of the content returned.'),
15
+ content: z.string().describe('The base64 encoded content of the file.'),
16
+ }),
17
+ };
18
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/tools/download_file_content/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;QAC9D,cAAc,EAAE,CAAC;aACd,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,mFAAmF;YACjF,oCAAoC,CACvC;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QAC/D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;QAC/D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;QAClF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;KACxE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const schema = {\n input: z.object({\n fileId: z.string().describe('The ID of the file to retrieve.'),\n exportMimeType: z\n .string()\n .optional()\n .describe(\n 'For Google native files, the MIME type to export the file to, ignored otherwise. ' +\n 'Defaults to text if not specified.',\n ),\n }),\n output: z.object({\n id: z.string().describe('The id of the file that was fetched.'),\n title: z.string().optional().describe('The title of the file.'),\n mimeType: z.string().optional().describe('The mime type of the content returned.'),\n content: z.string().describe('The base64 encoded content of the file.'),\n }),\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import type { drive_v3 } from '@googleapis/drive';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(drive: drive_v3.Drive, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAOxC"}
@@ -0,0 +1,10 @@
1
+ import { projectFile, TOOL_FILE_FIELDS } from '../../lib/file.js';
2
+ export async function handler(drive, args) {
3
+ const { data } = await drive.files.get({
4
+ fileId: args.fileId,
5
+ fields: TOOL_FILE_FIELDS,
6
+ supportsAllDrives: true,
7
+ });
8
+ return projectFile(data);
9
+ }
10
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGlE,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;QACrC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,MAAM,EAAE,gBAAgB;QACxB,iBAAiB,EAAE,IAAI;KACxB,CAAC,CAAC;IACH,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport type { z } from 'zod';\nimport { projectFile, TOOL_FILE_FIELDS } from '../../lib/file.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n drive: drive_v3.Drive,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await drive.files.get({\n fileId: args.fileId,\n fields: TOOL_FILE_FIELDS,\n supportsAllDrives: true,\n });\n return projectFile(data);\n}\n"]}
@@ -0,0 +1,26 @@
1
+ export declare const get_file_metadata: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
2
+ fileId: import("zod").ZodString;
3
+ excludeContentSnippets: import("zod").ZodOptional<import("zod").ZodBoolean>;
4
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
5
+ id: import("zod").ZodString;
6
+ title: import("zod").ZodOptional<import("zod").ZodString>;
7
+ parentId: import("zod").ZodOptional<import("zod").ZodString>;
8
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
9
+ fileSize: import("zod").ZodOptional<import("zod").ZodString>;
10
+ description: import("zod").ZodOptional<import("zod").ZodString>;
11
+ fileExtension: import("zod").ZodOptional<import("zod").ZodString>;
12
+ contentSnippet: import("zod").ZodOptional<import("zod").ZodString>;
13
+ viewUrl: import("zod").ZodOptional<import("zod").ZodString>;
14
+ sharedWithMeTime: import("zod").ZodOptional<import("zod").ZodString>;
15
+ createdTime: import("zod").ZodOptional<import("zod").ZodString>;
16
+ modifiedTime: import("zod").ZodOptional<import("zod").ZodString>;
17
+ viewedByMeTime: import("zod").ZodOptional<import("zod").ZodString>;
18
+ owner: import("zod").ZodOptional<import("zod").ZodString>;
19
+ canAddChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
20
+ starred: import("zod").ZodOptional<import("zod").ZodBoolean>;
21
+ trashed: import("zod").ZodOptional<import("zod").ZodBoolean>;
22
+ folderColorRgb: import("zod").ZodOptional<import("zod").ZodString>;
23
+ copyRequiresWriterPermission: import("zod").ZodOptional<import("zod").ZodBoolean>;
24
+ writersCanShare: import("zod").ZodOptional<import("zod").ZodBoolean>;
25
+ }, import("zod/v4/core").$strip>>;
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;iCAc5B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { driveOperation } from '../../operation.js';
2
+ import { handler } from './handler.js';
3
+ import { schema } from './schema.js';
4
+ export const get_file_metadata = driveOperation({
5
+ description: "Retrieve general metadata about a user's Drive file. If the file cannot be located, " +
6
+ 'use search_files to help identify the requested file.',
7
+ annotations: {
8
+ readOnlyHint: true,
9
+ destructiveHint: false,
10
+ idempotentHint: true,
11
+ openWorldHint: false,
12
+ },
13
+ source: 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/get_file_metadata',
14
+ schema,
15
+ handler,
16
+ });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;IAC9C,WAAW,EACT,sFAAsF;QACtF,uDAAuD;IACzD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,8FAA8F;IAChG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { driveOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\nexport const get_file_metadata = driveOperation({\n description:\n \"Retrieve general metadata about a user's Drive file. If the file cannot be located, \" +\n 'use search_files to help identify the requested file.',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/get_file_metadata',\n schema,\n handler,\n});\n"]}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ export declare const schema: {
3
+ input: z.ZodObject<{
4
+ fileId: z.ZodString;
5
+ excludeContentSnippets: z.ZodOptional<z.ZodBoolean>;
6
+ }, z.core.$strip>;
7
+ output: z.ZodObject<{
8
+ id: z.ZodString;
9
+ title: z.ZodOptional<z.ZodString>;
10
+ parentId: z.ZodOptional<z.ZodString>;
11
+ mimeType: z.ZodOptional<z.ZodString>;
12
+ fileSize: z.ZodOptional<z.ZodString>;
13
+ description: z.ZodOptional<z.ZodString>;
14
+ fileExtension: z.ZodOptional<z.ZodString>;
15
+ contentSnippet: z.ZodOptional<z.ZodString>;
16
+ viewUrl: z.ZodOptional<z.ZodString>;
17
+ sharedWithMeTime: z.ZodOptional<z.ZodString>;
18
+ createdTime: z.ZodOptional<z.ZodString>;
19
+ modifiedTime: z.ZodOptional<z.ZodString>;
20
+ viewedByMeTime: z.ZodOptional<z.ZodString>;
21
+ owner: z.ZodOptional<z.ZodString>;
22
+ canAddChildren: z.ZodOptional<z.ZodBoolean>;
23
+ starred: z.ZodOptional<z.ZodBoolean>;
24
+ trashed: z.ZodOptional<z.ZodBoolean>;
25
+ folderColorRgb: z.ZodOptional<z.ZodString>;
26
+ copyRequiresWriterPermission: z.ZodOptional<z.ZodBoolean>;
27
+ writersCanShare: z.ZodOptional<z.ZodBoolean>;
28
+ }, z.core.$strip>;
29
+ };
30
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { File } from '../../entities/File.js';
3
+ export const schema = {
4
+ input: z.object({
5
+ fileId: z.string().describe('The ID of the file to retrieve.'),
6
+ excludeContentSnippets: z
7
+ .boolean()
8
+ .optional()
9
+ .describe('If true, the content snippet will be excluded from the response. Accepted for contract ' +
10
+ 'fidelity; this server never produces snippets (the REST API serves none), so there is ' +
11
+ 'nothing to exclude either way.'),
12
+ }),
13
+ output: File,
14
+ };
15
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;QAC9D,sBAAsB,EAAE,CAAC;aACtB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,yFAAyF;YACvF,wFAAwF;YACxF,gCAAgC,CACnC;KACJ,CAAC;IACF,MAAM,EAAE,IAAI;CACb,CAAC","sourcesContent":["import { z } from 'zod';\nimport { File } from '../../entities/File.js';\n\nexport const schema = {\n input: z.object({\n fileId: z.string().describe('The ID of the file to retrieve.'),\n excludeContentSnippets: z\n .boolean()\n .optional()\n .describe(\n 'If true, the content snippet will be excluded from the response. Accepted for contract ' +\n 'fidelity; this server never produces snippets (the REST API serves none), so there is ' +\n 'nothing to exclude either way.',\n ),\n }),\n output: File,\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import type { drive_v3 } from '@googleapis/drive';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(drive: drive_v3.Drive, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAkBxC"}
@@ -0,0 +1,20 @@
1
+ import { forGoogle } from '../../../lib/google.js';
2
+ import { projectPermission } from '../../lib/file.js';
3
+ export async function handler(drive, args) {
4
+ // The documented output is a bare permission list with no page token, so the
5
+ // handler walks every REST page rather than truncating at the first.
6
+ const permissions = [];
7
+ let pageToken;
8
+ do {
9
+ const { data } = await drive.permissions.list(forGoogle({
10
+ fileId: args.fileId,
11
+ fields: 'nextPageToken,permissions(role,displayName,type,emailAddress,view)',
12
+ pageToken,
13
+ supportsAllDrives: true,
14
+ }));
15
+ permissions.push(...(data.permissions ?? []).map(projectPermission));
16
+ pageToken = data.nextPageToken ?? undefined;
17
+ } while (pageToken);
18
+ return { permissions };
19
+ }
20
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,6EAA6E;IAC7E,qEAAqE;IACrE,MAAM,WAAW,GAAiD,EAAE,CAAC;IACrE,IAAI,SAA6B,CAAC;IAClC,GAAG,CAAC;QACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,WAAW,CAAC,IAAI,CAC3C,SAAS,CAAC;YACR,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,oEAAoE;YAC5E,SAAS;YACT,iBAAiB,EAAE,IAAI;SACxB,CAAC,CACH,CAAC;QACF,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC;QACrE,SAAS,GAAG,IAAI,CAAC,aAAa,IAAI,SAAS,CAAC;IAC9C,CAAC,QAAQ,SAAS,EAAE;IACpB,OAAO,EAAE,WAAW,EAAE,CAAC;AACzB,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { projectPermission } from '../../lib/file.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n drive: drive_v3.Drive,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n // The documented output is a bare permission list with no page token, so the\n // handler walks every REST page rather than truncating at the first.\n const permissions: z.infer<typeof schema.output>['permissions'] = [];\n let pageToken: string | undefined;\n do {\n const { data } = await drive.permissions.list(\n forGoogle({\n fileId: args.fileId,\n fields: 'nextPageToken,permissions(role,displayName,type,emailAddress,view)',\n pageToken,\n supportsAllDrives: true,\n }),\n );\n permissions.push(...(data.permissions ?? []).map(projectPermission));\n pageToken = data.nextPageToken ?? undefined;\n } while (pageToken);\n return { permissions };\n}\n"]}
@@ -0,0 +1,27 @@
1
+ export declare const get_file_permissions: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
2
+ fileId: import("zod").ZodString;
3
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4
+ permissions: import("zod").ZodArray<import("zod").ZodObject<{
5
+ role: import("zod").ZodOptional<import("zod").ZodEnum<{
6
+ organizer: "organizer";
7
+ owner: "owner";
8
+ fileOrganizer: "fileOrganizer";
9
+ writer: "writer";
10
+ commenter: "commenter";
11
+ reader: "reader";
12
+ }>>;
13
+ displayName: import("zod").ZodOptional<import("zod").ZodString>;
14
+ type: import("zod").ZodOptional<import("zod").ZodEnum<{
15
+ domain: "domain";
16
+ user: "user";
17
+ group: "group";
18
+ anyone: "anyone";
19
+ }>>;
20
+ emailAddress: import("zod").ZodOptional<import("zod").ZodString>;
21
+ view: import("zod").ZodOptional<import("zod").ZodEnum<{
22
+ metadata: "metadata";
23
+ published: "published";
24
+ }>>;
25
+ }, import("zod/v4/core").$strip>>;
26
+ }, import("zod/v4/core").$strip>>;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;iCAY/B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { driveOperation } from '../../operation.js';
2
+ import { handler } from './handler.js';
3
+ import { schema } from './schema.js';
4
+ export const get_file_permissions = driveOperation({
5
+ description: 'List the permissions of a Drive file.',
6
+ annotations: {
7
+ readOnlyHint: true,
8
+ destructiveHint: false,
9
+ idempotentHint: true,
10
+ openWorldHint: false,
11
+ },
12
+ source: 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/get_file_permissions',
13
+ schema,
14
+ handler,
15
+ });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC;IACjD,WAAW,EAAE,uCAAuC;IACpD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,iGAAiG;IACnG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { driveOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\nexport const get_file_permissions = driveOperation({\n description: 'List the permissions of a Drive file.',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/get_file_permissions',\n schema,\n handler,\n});\n"]}
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export declare const schema: {
3
+ input: z.ZodObject<{
4
+ fileId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ output: z.ZodObject<{
7
+ permissions: z.ZodArray<z.ZodObject<{
8
+ role: z.ZodOptional<z.ZodEnum<{
9
+ organizer: "organizer";
10
+ owner: "owner";
11
+ fileOrganizer: "fileOrganizer";
12
+ writer: "writer";
13
+ commenter: "commenter";
14
+ reader: "reader";
15
+ }>>;
16
+ displayName: z.ZodOptional<z.ZodString>;
17
+ type: z.ZodOptional<z.ZodEnum<{
18
+ domain: "domain";
19
+ user: "user";
20
+ group: "group";
21
+ anyone: "anyone";
22
+ }>>;
23
+ emailAddress: z.ZodOptional<z.ZodString>;
24
+ view: z.ZodOptional<z.ZodEnum<{
25
+ metadata: "metadata";
26
+ published: "published";
27
+ }>>;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>;
30
+ };
31
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { Permission } from '../../entities/Permission.js';
3
+ export const schema = {
4
+ input: z.object({
5
+ fileId: z.string().describe('The ID of the file to get permissions for.'),
6
+ }),
7
+ output: z.object({
8
+ permissions: z.array(Permission).describe('The list of permissions.'),
9
+ }),
10
+ };
11
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;KAC1E,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC;KACtE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Permission } from '../../entities/Permission.js';\n\nexport const schema = {\n input: z.object({\n fileId: z.string().describe('The ID of the file to get permissions for.'),\n }),\n output: z.object({\n permissions: z.array(Permission).describe('The list of permissions.'),\n }),\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import type { drive_v3 } from '@googleapis/drive';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(drive: drive_v3.Drive, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAS1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAexC"}
@@ -0,0 +1,23 @@
1
+ import { forGoogle } from '../../../lib/google.js';
2
+ import { projectFile, TOOL_FILE_FIELDS } from '../../lib/file.js';
3
+ /** The MCP orderBy vocabulary mapped onto REST `orderBy`, most recent first. */
4
+ const orderings = {
5
+ recency: 'recency desc',
6
+ lastModified: 'modifiedTime desc',
7
+ lastModifiedByMe: 'modifiedByMeTime desc',
8
+ };
9
+ export async function handler(drive, args) {
10
+ const { data } = await drive.files.list(forGoogle({
11
+ orderBy: orderings[args.orderBy ?? 'recency'],
12
+ pageSize: args.pageSize ?? 10,
13
+ pageToken: args.pageToken,
14
+ fields: `nextPageToken,files(${TOOL_FILE_FIELDS})`,
15
+ supportsAllDrives: true,
16
+ includeItemsFromAllDrives: true,
17
+ }));
18
+ return {
19
+ files: (data.files ?? []).map(projectFile),
20
+ nextPageToken: data.nextPageToken ?? undefined,
21
+ };
22
+ }
23
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGlE,gFAAgF;AAChF,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,mBAAmB;IACjC,gBAAgB,EAAE,uBAAuB;CACjC,CAAC;AAEX,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,IAAI,CACrC,SAAS,CAAC;QACR,OAAO,EAAE,SAAS,CAAC,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC;QAC7C,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,EAAE;QAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,MAAM,EAAE,uBAAuB,gBAAgB,GAAG;QAClD,iBAAiB,EAAE,IAAI;QACvB,yBAAyB,EAAE,IAAI;KAChC,CAAC,CACH,CAAC;IACF,OAAO;QACL,KAAK,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC;QAC1C,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,SAAS;KAC/C,CAAC;AACJ,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { projectFile, TOOL_FILE_FIELDS } from '../../lib/file.js';\nimport type { schema } from './schema.js';\n\n/** The MCP orderBy vocabulary mapped onto REST `orderBy`, most recent first. */\nconst orderings = {\n recency: 'recency desc',\n lastModified: 'modifiedTime desc',\n lastModifiedByMe: 'modifiedByMeTime desc',\n} as const;\n\nexport async function handler(\n drive: drive_v3.Drive,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await drive.files.list(\n forGoogle({\n orderBy: orderings[args.orderBy ?? 'recency'],\n pageSize: args.pageSize ?? 10,\n pageToken: args.pageToken,\n fields: `nextPageToken,files(${TOOL_FILE_FIELDS})`,\n supportsAllDrives: true,\n includeItemsFromAllDrives: true,\n }),\n );\n return {\n files: (data.files ?? []).map(projectFile),\n nextPageToken: data.nextPageToken ?? undefined,\n };\n}\n"]}
@@ -0,0 +1,35 @@
1
+ export declare const list_recent_files: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
2
+ orderBy: import("zod").ZodOptional<import("zod").ZodEnum<{
3
+ lastModified: "lastModified";
4
+ recency: "recency";
5
+ lastModifiedByMe: "lastModifiedByMe";
6
+ }>>;
7
+ pageToken: import("zod").ZodOptional<import("zod").ZodString>;
8
+ pageSize: import("zod").ZodOptional<import("zod").ZodNumber>;
9
+ excludeContentSnippets: import("zod").ZodOptional<import("zod").ZodBoolean>;
10
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
11
+ files: import("zod").ZodArray<import("zod").ZodObject<{
12
+ id: import("zod").ZodString;
13
+ title: import("zod").ZodOptional<import("zod").ZodString>;
14
+ parentId: import("zod").ZodOptional<import("zod").ZodString>;
15
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
16
+ fileSize: import("zod").ZodOptional<import("zod").ZodString>;
17
+ description: import("zod").ZodOptional<import("zod").ZodString>;
18
+ fileExtension: import("zod").ZodOptional<import("zod").ZodString>;
19
+ contentSnippet: import("zod").ZodOptional<import("zod").ZodString>;
20
+ viewUrl: import("zod").ZodOptional<import("zod").ZodString>;
21
+ sharedWithMeTime: import("zod").ZodOptional<import("zod").ZodString>;
22
+ createdTime: import("zod").ZodOptional<import("zod").ZodString>;
23
+ modifiedTime: import("zod").ZodOptional<import("zod").ZodString>;
24
+ viewedByMeTime: import("zod").ZodOptional<import("zod").ZodString>;
25
+ owner: import("zod").ZodOptional<import("zod").ZodString>;
26
+ canAddChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
27
+ starred: import("zod").ZodOptional<import("zod").ZodBoolean>;
28
+ trashed: import("zod").ZodOptional<import("zod").ZodBoolean>;
29
+ folderColorRgb: import("zod").ZodOptional<import("zod").ZodString>;
30
+ copyRequiresWriterPermission: import("zod").ZodOptional<import("zod").ZodBoolean>;
31
+ writersCanShare: import("zod").ZodOptional<import("zod").ZodBoolean>;
32
+ }, import("zod/v4/core").$strip>>;
33
+ nextPageToken: import("zod").ZodOptional<import("zod").ZodString>;
34
+ }, import("zod/v4/core").$strip>>;
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAa5B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { driveOperation } from '../../operation.js';
2
+ import { handler } from './handler.js';
3
+ import { schema } from './schema.js';
4
+ export const list_recent_files = driveOperation({
5
+ description: 'Find recent files for a user with a specified sort order (default recency, page size 10).',
6
+ annotations: {
7
+ readOnlyHint: true,
8
+ destructiveHint: false,
9
+ idempotentHint: true,
10
+ openWorldHint: false,
11
+ },
12
+ source: 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/list_recent_files',
13
+ schema,
14
+ handler,
15
+ });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;IAC9C,WAAW,EACT,2FAA2F;IAC7F,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,8FAA8F;IAChG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { driveOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\nexport const list_recent_files = driveOperation({\n description:\n 'Find recent files for a user with a specified sort order (default recency, page size 10).',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/list_recent_files',\n schema,\n handler,\n});\n"]}
@@ -0,0 +1,39 @@
1
+ import { z } from 'zod';
2
+ export declare const schema: {
3
+ input: z.ZodObject<{
4
+ orderBy: z.ZodOptional<z.ZodEnum<{
5
+ lastModified: "lastModified";
6
+ recency: "recency";
7
+ lastModifiedByMe: "lastModifiedByMe";
8
+ }>>;
9
+ pageToken: z.ZodOptional<z.ZodString>;
10
+ pageSize: z.ZodOptional<z.ZodNumber>;
11
+ excludeContentSnippets: z.ZodOptional<z.ZodBoolean>;
12
+ }, z.core.$strip>;
13
+ output: z.ZodObject<{
14
+ files: z.ZodArray<z.ZodObject<{
15
+ id: z.ZodString;
16
+ title: z.ZodOptional<z.ZodString>;
17
+ parentId: z.ZodOptional<z.ZodString>;
18
+ mimeType: z.ZodOptional<z.ZodString>;
19
+ fileSize: z.ZodOptional<z.ZodString>;
20
+ description: z.ZodOptional<z.ZodString>;
21
+ fileExtension: z.ZodOptional<z.ZodString>;
22
+ contentSnippet: z.ZodOptional<z.ZodString>;
23
+ viewUrl: z.ZodOptional<z.ZodString>;
24
+ sharedWithMeTime: z.ZodOptional<z.ZodString>;
25
+ createdTime: z.ZodOptional<z.ZodString>;
26
+ modifiedTime: z.ZodOptional<z.ZodString>;
27
+ viewedByMeTime: z.ZodOptional<z.ZodString>;
28
+ owner: z.ZodOptional<z.ZodString>;
29
+ canAddChildren: z.ZodOptional<z.ZodBoolean>;
30
+ starred: z.ZodOptional<z.ZodBoolean>;
31
+ trashed: z.ZodOptional<z.ZodBoolean>;
32
+ folderColorRgb: z.ZodOptional<z.ZodString>;
33
+ copyRequiresWriterPermission: z.ZodOptional<z.ZodBoolean>;
34
+ writersCanShare: z.ZodOptional<z.ZodBoolean>;
35
+ }, z.core.$strip>>;
36
+ nextPageToken: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strip>;
38
+ };
39
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ import { File } from '../../entities/File.js';
3
+ export const schema = {
4
+ input: z.object({
5
+ orderBy: z
6
+ .enum(['recency', 'lastModified', 'lastModifiedByMe'])
7
+ .optional()
8
+ .describe("The sort order for the files. recency: most recent timestamp from the file's " +
9
+ 'date-time fields; lastModified: last time the file was modified by anyone; ' +
10
+ 'lastModifiedByMe: last time the file was modified by the user. Defaults to recency.'),
11
+ pageToken: z.string().optional().describe('The page token to use for pagination.'),
12
+ pageSize: z
13
+ .number()
14
+ .int()
15
+ .optional()
16
+ .describe('The maximum number of files to return. Defaults to 10.'),
17
+ excludeContentSnippets: z
18
+ .boolean()
19
+ .optional()
20
+ .describe('If true, the content snippet will be excluded from the response. Accepted for contract ' +
21
+ 'fidelity; this server never produces snippets (the REST API serves none), so there is ' +
22
+ 'nothing to exclude either way.'),
23
+ }),
24
+ output: z.object({
25
+ files: z.array(File).describe('The list of files.'),
26
+ nextPageToken: z.string().optional().describe('The next page token.'),
27
+ }),
28
+ };
29
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC;aACP,IAAI,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC;aACrD,QAAQ,EAAE;aACV,QAAQ,CACP,+EAA+E;YAC7E,6EAA6E;YAC7E,qFAAqF,CACxF;QACH,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QAClF,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,wDAAwD,CAAC;QACrE,sBAAsB,EAAE,CAAC;aACtB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,yFAAyF;YACvF,wFAAwF;YACxF,gCAAgC,CACnC;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC;QACnD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;KACtE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { File } from '../../entities/File.js';\n\nexport const schema = {\n input: z.object({\n orderBy: z\n .enum(['recency', 'lastModified', 'lastModifiedByMe'])\n .optional()\n .describe(\n \"The sort order for the files. recency: most recent timestamp from the file's \" +\n 'date-time fields; lastModified: last time the file was modified by anyone; ' +\n 'lastModifiedByMe: last time the file was modified by the user. Defaults to recency.',\n ),\n pageToken: z.string().optional().describe('The page token to use for pagination.'),\n pageSize: z\n .number()\n .int()\n .optional()\n .describe('The maximum number of files to return. Defaults to 10.'),\n excludeContentSnippets: z\n .boolean()\n .optional()\n .describe(\n 'If true, the content snippet will be excluded from the response. Accepted for contract ' +\n 'fidelity; this server never produces snippets (the REST API serves none), so there is ' +\n 'nothing to exclude either way.',\n ),\n }),\n output: z.object({\n files: z.array(File).describe('The list of files.'),\n nextPageToken: z.string().optional().describe('The next page token.'),\n }),\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import type { drive_v3 } from '@googleapis/drive';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(drive: drive_v3.Drive, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/read_file_content/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAiCxC"}
@@ -0,0 +1,24 @@
1
+ import { isGoogleNative, isTextLike, textExportMime } from '../../lib/content.js';
2
+ export async function handler(drive, args) {
3
+ const { data: meta } = await drive.files.get({
4
+ fileId: args.fileId,
5
+ fields: 'id,mimeType',
6
+ supportsAllDrives: true,
7
+ });
8
+ const mimeType = meta.mimeType ?? '';
9
+ if (isGoogleNative(mimeType)) {
10
+ const exportMime = textExportMime(mimeType);
11
+ if (!exportMime) {
12
+ throw new Error(`${mimeType} has no text representation; use download_file_content with an exportMimeType.`);
13
+ }
14
+ const res = await drive.files.export({ fileId: args.fileId, mimeType: exportMime }, { responseType: 'arraybuffer' });
15
+ return { fileContent: Buffer.from(res.data).toString('utf8') };
16
+ }
17
+ if (!isTextLike(mimeType)) {
18
+ throw new Error(`${mimeType || 'unknown mime type'} is not a text type this server can render; ` +
19
+ 'use download_file_content for base64 bytes.');
20
+ }
21
+ const res = await drive.files.get({ fileId: args.fileId, alt: 'media', supportsAllDrives: true }, { responseType: 'arraybuffer' });
22
+ return { fileContent: Buffer.from(res.data).toString('utf8') };
23
+ }
24
+ //# sourceMappingURL=handler.js.map