@imagekit/api-mcp 7.1.1 → 7.2.1

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 (522) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +26 -273
  3. package/code-tool-types.d.mts +7 -7
  4. package/code-tool-types.d.mts.map +1 -1
  5. package/code-tool-types.d.ts +7 -7
  6. package/code-tool-types.d.ts.map +1 -1
  7. package/code-tool.d.mts +3 -3
  8. package/code-tool.d.mts.map +1 -1
  9. package/code-tool.d.ts +3 -3
  10. package/code-tool.d.ts.map +1 -1
  11. package/code-tool.js +74 -135
  12. package/code-tool.js.map +1 -1
  13. package/code-tool.mjs +74 -102
  14. package/code-tool.mjs.map +1 -1
  15. package/docs-search-tool.d.mts +16 -9
  16. package/docs-search-tool.d.mts.map +1 -1
  17. package/docs-search-tool.d.ts +16 -9
  18. package/docs-search-tool.d.ts.map +1 -1
  19. package/docs-search-tool.js +11 -3
  20. package/docs-search-tool.js.map +1 -1
  21. package/docs-search-tool.mjs +11 -3
  22. package/docs-search-tool.mjs.map +1 -1
  23. package/headers.d.mts.map +1 -1
  24. package/headers.d.ts.map +1 -1
  25. package/headers.js +1 -1
  26. package/headers.js.map +1 -1
  27. package/headers.mjs +1 -1
  28. package/headers.mjs.map +1 -1
  29. package/http.d.mts.map +1 -1
  30. package/http.d.ts.map +1 -1
  31. package/http.js +4 -24
  32. package/http.js.map +1 -1
  33. package/http.mjs +4 -24
  34. package/http.mjs.map +1 -1
  35. package/index.js +4 -40
  36. package/index.js.map +1 -1
  37. package/index.mjs +4 -40
  38. package/index.mjs.map +1 -1
  39. package/options.d.mts +0 -9
  40. package/options.d.mts.map +1 -1
  41. package/options.d.ts +0 -9
  42. package/options.d.ts.map +1 -1
  43. package/options.js +6 -358
  44. package/options.js.map +1 -1
  45. package/options.mjs +6 -358
  46. package/options.mjs.map +1 -1
  47. package/package.json +14 -68
  48. package/server.d.mts +3 -8
  49. package/server.d.mts.map +1 -1
  50. package/server.d.ts +3 -8
  51. package/server.d.ts.map +1 -1
  52. package/server.js +12 -65
  53. package/server.js.map +1 -1
  54. package/server.mjs +11 -62
  55. package/server.mjs.map +1 -1
  56. package/src/code-tool-types.ts +7 -5
  57. package/src/code-tool.ts +81 -120
  58. package/src/docs-search-tool.ts +15 -4
  59. package/src/headers.ts +3 -1
  60. package/src/http.ts +5 -26
  61. package/src/index.ts +5 -52
  62. package/src/options.ts +7 -381
  63. package/src/server.ts +12 -72
  64. package/src/stdio.ts +2 -3
  65. package/src/{tools/types.ts → types.ts} +13 -1
  66. package/stdio.d.mts +1 -2
  67. package/stdio.d.mts.map +1 -1
  68. package/stdio.d.ts +1 -2
  69. package/stdio.d.ts.map +1 -1
  70. package/stdio.js +2 -2
  71. package/stdio.js.map +1 -1
  72. package/stdio.mjs +2 -2
  73. package/stdio.mjs.map +1 -1
  74. package/{tools/types.d.mts → types.d.mts} +2 -1
  75. package/types.d.mts.map +1 -0
  76. package/{tools/types.d.ts → types.d.ts} +2 -1
  77. package/types.d.ts.map +1 -0
  78. package/{tools/types.js → types.js} +12 -0
  79. package/types.js.map +1 -0
  80. package/{tools/types.mjs → types.mjs} +11 -0
  81. package/types.mjs.map +1 -0
  82. package/code-tool-paths.cjs +0 -6
  83. package/code-tool-paths.cjs.map +0 -1
  84. package/code-tool-paths.d.cts +0 -2
  85. package/code-tool-paths.d.cts.map +0 -1
  86. package/code-tool-worker.d.mts +0 -5
  87. package/code-tool-worker.d.mts.map +0 -1
  88. package/code-tool-worker.d.ts +0 -5
  89. package/code-tool-worker.d.ts.map +0 -1
  90. package/code-tool-worker.js +0 -45
  91. package/code-tool-worker.js.map +0 -1
  92. package/code-tool-worker.mjs +0 -40
  93. package/code-tool-worker.mjs.map +0 -1
  94. package/compat.d.mts +0 -58
  95. package/compat.d.mts.map +0 -1
  96. package/compat.d.ts +0 -58
  97. package/compat.d.ts.map +0 -1
  98. package/compat.js +0 -387
  99. package/compat.js.map +0 -1
  100. package/compat.mjs +0 -378
  101. package/compat.mjs.map +0 -1
  102. package/dynamic-tools.d.mts +0 -12
  103. package/dynamic-tools.d.mts.map +0 -1
  104. package/dynamic-tools.d.ts +0 -12
  105. package/dynamic-tools.d.ts.map +0 -1
  106. package/dynamic-tools.js +0 -135
  107. package/dynamic-tools.js.map +0 -1
  108. package/dynamic-tools.mjs +0 -132
  109. package/dynamic-tools.mjs.map +0 -1
  110. package/filtering.d.mts +0 -2
  111. package/filtering.d.mts.map +0 -1
  112. package/filtering.d.ts +0 -2
  113. package/filtering.d.ts.map +0 -1
  114. package/filtering.js +0 -20
  115. package/filtering.js.map +0 -1
  116. package/filtering.mjs +0 -13
  117. package/filtering.mjs.map +0 -1
  118. package/src/code-tool-paths.cts +0 -3
  119. package/src/code-tool-worker.ts +0 -46
  120. package/src/compat.ts +0 -483
  121. package/src/dynamic-tools.ts +0 -153
  122. package/src/filtering.ts +0 -14
  123. package/src/tools/accounts/origins/create-accounts-origins.ts +0 -318
  124. package/src/tools/accounts/origins/delete-accounts-origins.ts +0 -43
  125. package/src/tools/accounts/origins/get-accounts-origins.ts +0 -41
  126. package/src/tools/accounts/origins/list-accounts-origins.ts +0 -35
  127. package/src/tools/accounts/origins/update-accounts-origins.ts +0 -360
  128. package/src/tools/accounts/url-endpoints/create-accounts-url-endpoints.ts +0 -103
  129. package/src/tools/accounts/url-endpoints/delete-accounts-url-endpoints.ts +0 -43
  130. package/src/tools/accounts/url-endpoints/get-accounts-url-endpoints.ts +0 -49
  131. package/src/tools/accounts/url-endpoints/list-accounts-url-endpoints.ts +0 -44
  132. package/src/tools/accounts/url-endpoints/update-accounts-url-endpoints.ts +0 -112
  133. package/src/tools/accounts/usage/get-accounts-usage.ts +0 -56
  134. package/src/tools/assets/list-assets.ts +0 -94
  135. package/src/tools/beta/v2/files/upload-v2-beta-files.ts +0 -316
  136. package/src/tools/cache/invalidation/create-cache-invalidation.ts +0 -46
  137. package/src/tools/cache/invalidation/get-cache-invalidation.ts +0 -47
  138. package/src/tools/custom-metadata-fields/create-custom-metadata-fields.ts +0 -154
  139. package/src/tools/custom-metadata-fields/delete-custom-metadata-fields.ts +0 -47
  140. package/src/tools/custom-metadata-fields/list-custom-metadata-fields.ts +0 -53
  141. package/src/tools/custom-metadata-fields/update-custom-metadata-fields.ts +0 -150
  142. package/src/tools/files/bulk/add-tags-files-bulk.ts +0 -56
  143. package/src/tools/files/bulk/delete-files-bulk.ts +0 -49
  144. package/src/tools/files/bulk/remove-ai-tags-files-bulk.ts +0 -56
  145. package/src/tools/files/bulk/remove-tags-files-bulk.ts +0 -56
  146. package/src/tools/files/copy-files.ts +0 -55
  147. package/src/tools/files/delete-files.ts +0 -41
  148. package/src/tools/files/get-files.ts +0 -47
  149. package/src/tools/files/metadata/get-files-metadata.ts +0 -47
  150. package/src/tools/files/metadata/get-from-url-files-metadata.ts +0 -48
  151. package/src/tools/files/move-files.ts +0 -50
  152. package/src/tools/files/rename-files.ts +0 -58
  153. package/src/tools/files/update-files.ts +0 -196
  154. package/src/tools/files/upload-files.ts +0 -332
  155. package/src/tools/files/versions/delete-files-versions.ts +0 -52
  156. package/src/tools/files/versions/get-files-versions.ts +0 -50
  157. package/src/tools/files/versions/list-files-versions.ts +0 -47
  158. package/src/tools/files/versions/restore-files-versions.ts +0 -52
  159. package/src/tools/folders/copy-folders.ts +0 -55
  160. package/src/tools/folders/create-folders.ts +0 -52
  161. package/src/tools/folders/delete-folders.ts +0 -48
  162. package/src/tools/folders/job/get-folders-job.ts +0 -47
  163. package/src/tools/folders/move-folders.ts +0 -50
  164. package/src/tools/folders/rename-folders.ts +0 -56
  165. package/src/tools/index.ts +0 -153
  166. package/src/tools.ts +0 -1
  167. package/tools/accounts/origins/create-accounts-origins.d.mts +0 -45
  168. package/tools/accounts/origins/create-accounts-origins.d.mts.map +0 -1
  169. package/tools/accounts/origins/create-accounts-origins.d.ts +0 -45
  170. package/tools/accounts/origins/create-accounts-origins.d.ts.map +0 -1
  171. package/tools/accounts/origins/create-accounts-origins.js +0 -314
  172. package/tools/accounts/origins/create-accounts-origins.js.map +0 -1
  173. package/tools/accounts/origins/create-accounts-origins.mjs +0 -310
  174. package/tools/accounts/origins/create-accounts-origins.mjs.map +0 -1
  175. package/tools/accounts/origins/delete-accounts-origins.d.mts +0 -45
  176. package/tools/accounts/origins/delete-accounts-origins.d.mts.map +0 -1
  177. package/tools/accounts/origins/delete-accounts-origins.d.ts +0 -45
  178. package/tools/accounts/origins/delete-accounts-origins.d.ts.map +0 -1
  179. package/tools/accounts/origins/delete-accounts-origins.js +0 -38
  180. package/tools/accounts/origins/delete-accounts-origins.js.map +0 -1
  181. package/tools/accounts/origins/delete-accounts-origins.mjs +0 -34
  182. package/tools/accounts/origins/delete-accounts-origins.mjs.map +0 -1
  183. package/tools/accounts/origins/get-accounts-origins.d.mts +0 -45
  184. package/tools/accounts/origins/get-accounts-origins.d.mts.map +0 -1
  185. package/tools/accounts/origins/get-accounts-origins.d.ts +0 -45
  186. package/tools/accounts/origins/get-accounts-origins.d.ts.map +0 -1
  187. package/tools/accounts/origins/get-accounts-origins.js +0 -37
  188. package/tools/accounts/origins/get-accounts-origins.js.map +0 -1
  189. package/tools/accounts/origins/get-accounts-origins.mjs +0 -33
  190. package/tools/accounts/origins/get-accounts-origins.mjs.map +0 -1
  191. package/tools/accounts/origins/list-accounts-origins.d.mts +0 -45
  192. package/tools/accounts/origins/list-accounts-origins.d.mts.map +0 -1
  193. package/tools/accounts/origins/list-accounts-origins.d.ts +0 -45
  194. package/tools/accounts/origins/list-accounts-origins.d.ts.map +0 -1
  195. package/tools/accounts/origins/list-accounts-origins.js +0 -31
  196. package/tools/accounts/origins/list-accounts-origins.js.map +0 -1
  197. package/tools/accounts/origins/list-accounts-origins.mjs +0 -27
  198. package/tools/accounts/origins/list-accounts-origins.mjs.map +0 -1
  199. package/tools/accounts/origins/update-accounts-origins.d.mts +0 -45
  200. package/tools/accounts/origins/update-accounts-origins.d.mts.map +0 -1
  201. package/tools/accounts/origins/update-accounts-origins.d.ts +0 -45
  202. package/tools/accounts/origins/update-accounts-origins.d.ts.map +0 -1
  203. package/tools/accounts/origins/update-accounts-origins.js +0 -348
  204. package/tools/accounts/origins/update-accounts-origins.js.map +0 -1
  205. package/tools/accounts/origins/update-accounts-origins.mjs +0 -344
  206. package/tools/accounts/origins/update-accounts-origins.mjs.map +0 -1
  207. package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts +0 -45
  208. package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts.map +0 -1
  209. package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts +0 -45
  210. package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts.map +0 -1
  211. package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js +0 -95
  212. package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js.map +0 -1
  213. package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs +0 -91
  214. package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs.map +0 -1
  215. package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts +0 -45
  216. package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts.map +0 -1
  217. package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts +0 -45
  218. package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts.map +0 -1
  219. package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js +0 -38
  220. package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js.map +0 -1
  221. package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs +0 -34
  222. package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs.map +0 -1
  223. package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts +0 -45
  224. package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts.map +0 -1
  225. package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts +0 -45
  226. package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts.map +0 -1
  227. package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js +0 -43
  228. package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js.map +0 -1
  229. package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs +0 -39
  230. package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs.map +0 -1
  231. package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts +0 -45
  232. package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts.map +0 -1
  233. package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts +0 -45
  234. package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts.map +0 -1
  235. package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js +0 -39
  236. package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js.map +0 -1
  237. package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs +0 -35
  238. package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs.map +0 -1
  239. package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts +0 -45
  240. package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts.map +0 -1
  241. package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts +0 -45
  242. package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts.map +0 -1
  243. package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js +0 -101
  244. package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js.map +0 -1
  245. package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs +0 -97
  246. package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs.map +0 -1
  247. package/tools/accounts/usage/get-accounts-usage.d.mts +0 -45
  248. package/tools/accounts/usage/get-accounts-usage.d.mts.map +0 -1
  249. package/tools/accounts/usage/get-accounts-usage.d.ts +0 -45
  250. package/tools/accounts/usage/get-accounts-usage.d.ts.map +0 -1
  251. package/tools/accounts/usage/get-accounts-usage.js +0 -49
  252. package/tools/accounts/usage/get-accounts-usage.js.map +0 -1
  253. package/tools/accounts/usage/get-accounts-usage.mjs +0 -45
  254. package/tools/accounts/usage/get-accounts-usage.mjs.map +0 -1
  255. package/tools/assets/list-assets.d.mts +0 -45
  256. package/tools/assets/list-assets.d.mts.map +0 -1
  257. package/tools/assets/list-assets.d.ts +0 -45
  258. package/tools/assets/list-assets.d.ts.map +0 -1
  259. package/tools/assets/list-assets.js +0 -85
  260. package/tools/assets/list-assets.js.map +0 -1
  261. package/tools/assets/list-assets.mjs +0 -81
  262. package/tools/assets/list-assets.mjs.map +0 -1
  263. package/tools/beta/v2/files/upload-v2-beta-files.d.mts +0 -45
  264. package/tools/beta/v2/files/upload-v2-beta-files.d.mts.map +0 -1
  265. package/tools/beta/v2/files/upload-v2-beta-files.d.ts +0 -45
  266. package/tools/beta/v2/files/upload-v2-beta-files.d.ts.map +0 -1
  267. package/tools/beta/v2/files/upload-v2-beta-files.js +0 -286
  268. package/tools/beta/v2/files/upload-v2-beta-files.js.map +0 -1
  269. package/tools/beta/v2/files/upload-v2-beta-files.mjs +0 -282
  270. package/tools/beta/v2/files/upload-v2-beta-files.mjs.map +0 -1
  271. package/tools/cache/invalidation/create-cache-invalidation.d.mts +0 -45
  272. package/tools/cache/invalidation/create-cache-invalidation.d.mts.map +0 -1
  273. package/tools/cache/invalidation/create-cache-invalidation.d.ts +0 -45
  274. package/tools/cache/invalidation/create-cache-invalidation.d.ts.map +0 -1
  275. package/tools/cache/invalidation/create-cache-invalidation.js +0 -41
  276. package/tools/cache/invalidation/create-cache-invalidation.js.map +0 -1
  277. package/tools/cache/invalidation/create-cache-invalidation.mjs +0 -37
  278. package/tools/cache/invalidation/create-cache-invalidation.mjs.map +0 -1
  279. package/tools/cache/invalidation/get-cache-invalidation.d.mts +0 -45
  280. package/tools/cache/invalidation/get-cache-invalidation.d.mts.map +0 -1
  281. package/tools/cache/invalidation/get-cache-invalidation.d.ts +0 -45
  282. package/tools/cache/invalidation/get-cache-invalidation.d.ts.map +0 -1
  283. package/tools/cache/invalidation/get-cache-invalidation.js +0 -42
  284. package/tools/cache/invalidation/get-cache-invalidation.js.map +0 -1
  285. package/tools/cache/invalidation/get-cache-invalidation.mjs +0 -38
  286. package/tools/cache/invalidation/get-cache-invalidation.mjs.map +0 -1
  287. package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts +0 -45
  288. package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts.map +0 -1
  289. package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts +0 -45
  290. package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts.map +0 -1
  291. package/tools/custom-metadata-fields/create-custom-metadata-fields.js +0 -139
  292. package/tools/custom-metadata-fields/create-custom-metadata-fields.js.map +0 -1
  293. package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs +0 -135
  294. package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs.map +0 -1
  295. package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts +0 -45
  296. package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts.map +0 -1
  297. package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts +0 -45
  298. package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts.map +0 -1
  299. package/tools/custom-metadata-fields/delete-custom-metadata-fields.js +0 -42
  300. package/tools/custom-metadata-fields/delete-custom-metadata-fields.js.map +0 -1
  301. package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs +0 -38
  302. package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs.map +0 -1
  303. package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts +0 -45
  304. package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts.map +0 -1
  305. package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts +0 -45
  306. package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts.map +0 -1
  307. package/tools/custom-metadata-fields/list-custom-metadata-fields.js +0 -47
  308. package/tools/custom-metadata-fields/list-custom-metadata-fields.js.map +0 -1
  309. package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs +0 -43
  310. package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs.map +0 -1
  311. package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts +0 -45
  312. package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts.map +0 -1
  313. package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts +0 -45
  314. package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts.map +0 -1
  315. package/tools/custom-metadata-fields/update-custom-metadata-fields.js +0 -133
  316. package/tools/custom-metadata-fields/update-custom-metadata-fields.js.map +0 -1
  317. package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs +0 -129
  318. package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs.map +0 -1
  319. package/tools/files/bulk/add-tags-files-bulk.d.mts +0 -45
  320. package/tools/files/bulk/add-tags-files-bulk.d.mts.map +0 -1
  321. package/tools/files/bulk/add-tags-files-bulk.d.ts +0 -45
  322. package/tools/files/bulk/add-tags-files-bulk.d.ts.map +0 -1
  323. package/tools/files/bulk/add-tags-files-bulk.js +0 -51
  324. package/tools/files/bulk/add-tags-files-bulk.js.map +0 -1
  325. package/tools/files/bulk/add-tags-files-bulk.mjs +0 -47
  326. package/tools/files/bulk/add-tags-files-bulk.mjs.map +0 -1
  327. package/tools/files/bulk/delete-files-bulk.d.mts +0 -45
  328. package/tools/files/bulk/delete-files-bulk.d.mts.map +0 -1
  329. package/tools/files/bulk/delete-files-bulk.d.ts +0 -45
  330. package/tools/files/bulk/delete-files-bulk.d.ts.map +0 -1
  331. package/tools/files/bulk/delete-files-bulk.js +0 -44
  332. package/tools/files/bulk/delete-files-bulk.js.map +0 -1
  333. package/tools/files/bulk/delete-files-bulk.mjs +0 -40
  334. package/tools/files/bulk/delete-files-bulk.mjs.map +0 -1
  335. package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts +0 -45
  336. package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts.map +0 -1
  337. package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts +0 -45
  338. package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts.map +0 -1
  339. package/tools/files/bulk/remove-ai-tags-files-bulk.js +0 -51
  340. package/tools/files/bulk/remove-ai-tags-files-bulk.js.map +0 -1
  341. package/tools/files/bulk/remove-ai-tags-files-bulk.mjs +0 -47
  342. package/tools/files/bulk/remove-ai-tags-files-bulk.mjs.map +0 -1
  343. package/tools/files/bulk/remove-tags-files-bulk.d.mts +0 -45
  344. package/tools/files/bulk/remove-tags-files-bulk.d.mts.map +0 -1
  345. package/tools/files/bulk/remove-tags-files-bulk.d.ts +0 -45
  346. package/tools/files/bulk/remove-tags-files-bulk.d.ts.map +0 -1
  347. package/tools/files/bulk/remove-tags-files-bulk.js +0 -51
  348. package/tools/files/bulk/remove-tags-files-bulk.js.map +0 -1
  349. package/tools/files/bulk/remove-tags-files-bulk.mjs +0 -47
  350. package/tools/files/bulk/remove-tags-files-bulk.mjs.map +0 -1
  351. package/tools/files/copy-files.d.mts +0 -45
  352. package/tools/files/copy-files.d.mts.map +0 -1
  353. package/tools/files/copy-files.d.ts +0 -45
  354. package/tools/files/copy-files.d.ts.map +0 -1
  355. package/tools/files/copy-files.js +0 -49
  356. package/tools/files/copy-files.js.map +0 -1
  357. package/tools/files/copy-files.mjs +0 -45
  358. package/tools/files/copy-files.mjs.map +0 -1
  359. package/tools/files/delete-files.d.mts +0 -45
  360. package/tools/files/delete-files.d.mts.map +0 -1
  361. package/tools/files/delete-files.d.ts +0 -45
  362. package/tools/files/delete-files.d.ts.map +0 -1
  363. package/tools/files/delete-files.js +0 -37
  364. package/tools/files/delete-files.js.map +0 -1
  365. package/tools/files/delete-files.mjs +0 -33
  366. package/tools/files/delete-files.mjs.map +0 -1
  367. package/tools/files/get-files.d.mts +0 -45
  368. package/tools/files/get-files.d.mts.map +0 -1
  369. package/tools/files/get-files.d.ts +0 -45
  370. package/tools/files/get-files.d.ts.map +0 -1
  371. package/tools/files/get-files.js +0 -42
  372. package/tools/files/get-files.js.map +0 -1
  373. package/tools/files/get-files.mjs +0 -38
  374. package/tools/files/get-files.mjs.map +0 -1
  375. package/tools/files/metadata/get-files-metadata.d.mts +0 -45
  376. package/tools/files/metadata/get-files-metadata.d.mts.map +0 -1
  377. package/tools/files/metadata/get-files-metadata.d.ts +0 -45
  378. package/tools/files/metadata/get-files-metadata.d.ts.map +0 -1
  379. package/tools/files/metadata/get-files-metadata.js +0 -42
  380. package/tools/files/metadata/get-files-metadata.js.map +0 -1
  381. package/tools/files/metadata/get-files-metadata.mjs +0 -38
  382. package/tools/files/metadata/get-files-metadata.mjs.map +0 -1
  383. package/tools/files/metadata/get-from-url-files-metadata.d.mts +0 -45
  384. package/tools/files/metadata/get-from-url-files-metadata.d.mts.map +0 -1
  385. package/tools/files/metadata/get-from-url-files-metadata.d.ts +0 -45
  386. package/tools/files/metadata/get-from-url-files-metadata.d.ts.map +0 -1
  387. package/tools/files/metadata/get-from-url-files-metadata.js +0 -43
  388. package/tools/files/metadata/get-from-url-files-metadata.js.map +0 -1
  389. package/tools/files/metadata/get-from-url-files-metadata.mjs +0 -39
  390. package/tools/files/metadata/get-from-url-files-metadata.mjs.map +0 -1
  391. package/tools/files/move-files.d.mts +0 -45
  392. package/tools/files/move-files.d.mts.map +0 -1
  393. package/tools/files/move-files.d.ts +0 -45
  394. package/tools/files/move-files.d.ts.map +0 -1
  395. package/tools/files/move-files.js +0 -45
  396. package/tools/files/move-files.js.map +0 -1
  397. package/tools/files/move-files.mjs +0 -41
  398. package/tools/files/move-files.mjs.map +0 -1
  399. package/tools/files/rename-files.d.mts +0 -45
  400. package/tools/files/rename-files.d.mts.map +0 -1
  401. package/tools/files/rename-files.d.ts +0 -45
  402. package/tools/files/rename-files.d.ts.map +0 -1
  403. package/tools/files/rename-files.js +0 -51
  404. package/tools/files/rename-files.js.map +0 -1
  405. package/tools/files/rename-files.mjs +0 -47
  406. package/tools/files/rename-files.mjs.map +0 -1
  407. package/tools/files/update-files.d.mts +0 -45
  408. package/tools/files/update-files.d.mts.map +0 -1
  409. package/tools/files/update-files.d.ts +0 -45
  410. package/tools/files/update-files.d.ts.map +0 -1
  411. package/tools/files/update-files.js +0 -181
  412. package/tools/files/update-files.js.map +0 -1
  413. package/tools/files/update-files.mjs +0 -177
  414. package/tools/files/update-files.mjs.map +0 -1
  415. package/tools/files/upload-files.d.mts +0 -45
  416. package/tools/files/upload-files.d.mts.map +0 -1
  417. package/tools/files/upload-files.d.ts +0 -45
  418. package/tools/files/upload-files.d.ts.map +0 -1
  419. package/tools/files/upload-files.js +0 -298
  420. package/tools/files/upload-files.js.map +0 -1
  421. package/tools/files/upload-files.mjs +0 -294
  422. package/tools/files/upload-files.mjs.map +0 -1
  423. package/tools/files/versions/delete-files-versions.d.mts +0 -45
  424. package/tools/files/versions/delete-files-versions.d.mts.map +0 -1
  425. package/tools/files/versions/delete-files-versions.d.ts +0 -45
  426. package/tools/files/versions/delete-files-versions.d.ts.map +0 -1
  427. package/tools/files/versions/delete-files-versions.js +0 -45
  428. package/tools/files/versions/delete-files-versions.js.map +0 -1
  429. package/tools/files/versions/delete-files-versions.mjs +0 -41
  430. package/tools/files/versions/delete-files-versions.mjs.map +0 -1
  431. package/tools/files/versions/get-files-versions.d.mts +0 -45
  432. package/tools/files/versions/get-files-versions.d.mts.map +0 -1
  433. package/tools/files/versions/get-files-versions.d.ts +0 -45
  434. package/tools/files/versions/get-files-versions.d.ts.map +0 -1
  435. package/tools/files/versions/get-files-versions.js +0 -45
  436. package/tools/files/versions/get-files-versions.js.map +0 -1
  437. package/tools/files/versions/get-files-versions.mjs +0 -41
  438. package/tools/files/versions/get-files-versions.mjs.map +0 -1
  439. package/tools/files/versions/list-files-versions.d.mts +0 -45
  440. package/tools/files/versions/list-files-versions.d.mts.map +0 -1
  441. package/tools/files/versions/list-files-versions.d.ts +0 -45
  442. package/tools/files/versions/list-files-versions.d.ts.map +0 -1
  443. package/tools/files/versions/list-files-versions.js +0 -42
  444. package/tools/files/versions/list-files-versions.js.map +0 -1
  445. package/tools/files/versions/list-files-versions.mjs +0 -38
  446. package/tools/files/versions/list-files-versions.mjs.map +0 -1
  447. package/tools/files/versions/restore-files-versions.d.mts +0 -45
  448. package/tools/files/versions/restore-files-versions.d.mts.map +0 -1
  449. package/tools/files/versions/restore-files-versions.d.ts +0 -45
  450. package/tools/files/versions/restore-files-versions.d.ts.map +0 -1
  451. package/tools/files/versions/restore-files-versions.js +0 -45
  452. package/tools/files/versions/restore-files-versions.js.map +0 -1
  453. package/tools/files/versions/restore-files-versions.mjs +0 -41
  454. package/tools/files/versions/restore-files-versions.mjs.map +0 -1
  455. package/tools/folders/copy-folders.d.mts +0 -45
  456. package/tools/folders/copy-folders.d.mts.map +0 -1
  457. package/tools/folders/copy-folders.d.ts +0 -45
  458. package/tools/folders/copy-folders.d.ts.map +0 -1
  459. package/tools/folders/copy-folders.js +0 -49
  460. package/tools/folders/copy-folders.js.map +0 -1
  461. package/tools/folders/copy-folders.mjs +0 -45
  462. package/tools/folders/copy-folders.mjs.map +0 -1
  463. package/tools/folders/create-folders.d.mts +0 -45
  464. package/tools/folders/create-folders.d.mts.map +0 -1
  465. package/tools/folders/create-folders.d.ts +0 -45
  466. package/tools/folders/create-folders.d.ts.map +0 -1
  467. package/tools/folders/create-folders.js +0 -45
  468. package/tools/folders/create-folders.js.map +0 -1
  469. package/tools/folders/create-folders.mjs +0 -41
  470. package/tools/folders/create-folders.mjs.map +0 -1
  471. package/tools/folders/delete-folders.d.mts +0 -45
  472. package/tools/folders/delete-folders.d.mts.map +0 -1
  473. package/tools/folders/delete-folders.d.ts +0 -45
  474. package/tools/folders/delete-folders.d.ts.map +0 -1
  475. package/tools/folders/delete-folders.js +0 -43
  476. package/tools/folders/delete-folders.js.map +0 -1
  477. package/tools/folders/delete-folders.mjs +0 -39
  478. package/tools/folders/delete-folders.mjs.map +0 -1
  479. package/tools/folders/job/get-folders-job.d.mts +0 -45
  480. package/tools/folders/job/get-folders-job.d.mts.map +0 -1
  481. package/tools/folders/job/get-folders-job.d.ts +0 -45
  482. package/tools/folders/job/get-folders-job.d.ts.map +0 -1
  483. package/tools/folders/job/get-folders-job.js +0 -42
  484. package/tools/folders/job/get-folders-job.js.map +0 -1
  485. package/tools/folders/job/get-folders-job.mjs +0 -38
  486. package/tools/folders/job/get-folders-job.mjs.map +0 -1
  487. package/tools/folders/move-folders.d.mts +0 -45
  488. package/tools/folders/move-folders.d.mts.map +0 -1
  489. package/tools/folders/move-folders.d.ts +0 -45
  490. package/tools/folders/move-folders.d.ts.map +0 -1
  491. package/tools/folders/move-folders.js +0 -45
  492. package/tools/folders/move-folders.js.map +0 -1
  493. package/tools/folders/move-folders.mjs +0 -41
  494. package/tools/folders/move-folders.mjs.map +0 -1
  495. package/tools/folders/rename-folders.d.mts +0 -45
  496. package/tools/folders/rename-folders.d.mts.map +0 -1
  497. package/tools/folders/rename-folders.d.ts +0 -45
  498. package/tools/folders/rename-folders.d.ts.map +0 -1
  499. package/tools/folders/rename-folders.js +0 -49
  500. package/tools/folders/rename-folders.js.map +0 -1
  501. package/tools/folders/rename-folders.mjs +0 -45
  502. package/tools/folders/rename-folders.mjs.map +0 -1
  503. package/tools/index.d.mts +0 -10
  504. package/tools/index.d.mts.map +0 -1
  505. package/tools/index.d.ts +0 -10
  506. package/tools/index.d.ts.map +0 -1
  507. package/tools/index.js +0 -137
  508. package/tools/index.js.map +0 -1
  509. package/tools/index.mjs +0 -130
  510. package/tools/index.mjs.map +0 -1
  511. package/tools/types.d.mts.map +0 -1
  512. package/tools/types.d.ts.map +0 -1
  513. package/tools/types.js.map +0 -1
  514. package/tools/types.mjs.map +0 -1
  515. package/tools.d.mts +0 -2
  516. package/tools.d.mts.map +0 -1
  517. package/tools.d.ts +0 -2
  518. package/tools.d.ts.map +0 -1
  519. package/tools.js +0 -18
  520. package/tools.js.map +0 -1
  521. package/tools.mjs +0 -2
  522. package/tools.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-files.d.mts","sourceRoot":"","sources":["../../src/tools/files/get-files.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,+BAA+B;OAEtE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,kBAAkB;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,45 +0,0 @@
1
- import { Metadata } from '@imagekit/api-mcp/tools/types';
2
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
- import ImageKit from '@imagekit/nodejs';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
7
- declare const _default: {
8
- metadata: Metadata;
9
- tool: {
10
- [x: string]: unknown;
11
- name: string;
12
- inputSchema: {
13
- [x: string]: unknown;
14
- type: "object";
15
- properties?: {
16
- [x: string]: unknown;
17
- } | undefined;
18
- required?: string[] | undefined;
19
- };
20
- title?: string | undefined;
21
- description?: string | undefined;
22
- outputSchema?: {
23
- [x: string]: unknown;
24
- type: "object";
25
- properties?: {
26
- [x: string]: unknown;
27
- } | undefined;
28
- required?: string[] | undefined;
29
- } | undefined;
30
- annotations?: {
31
- [x: string]: unknown;
32
- title?: string | undefined;
33
- readOnlyHint?: boolean | undefined;
34
- destructiveHint?: boolean | undefined;
35
- idempotentHint?: boolean | undefined;
36
- openWorldHint?: boolean | undefined;
37
- } | undefined;
38
- _meta?: {
39
- [x: string]: unknown;
40
- } | undefined;
41
- };
42
- handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
43
- };
44
- export default _default;
45
- //# sourceMappingURL=get-files.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-files.d.ts","sourceRoot":"","sources":["../../src/tools/files/get-files.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,+BAA+B;OAEtE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,kBAAkB;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.handler = exports.tool = exports.metadata = void 0;
5
- const filtering_1 = require("@imagekit/api-mcp/filtering");
6
- const types_1 = require("@imagekit/api-mcp/tools/types");
7
- exports.metadata = {
8
- resource: 'files',
9
- operation: 'read',
10
- tags: [],
11
- httpMethod: 'get',
12
- httpPath: '/v1/files/{fileId}/details',
13
- operationId: 'get-file-details',
14
- };
15
- exports.tool = {
16
- name: 'get_files',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nThis API returns an object with details or attributes about the current version of the file.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/file',\n $defs: {\n file: {\n type: 'object',\n title: 'File & File Version',\n description: 'Object containing details of a file or file version.',\n properties: {\n AITags: {\n type: 'array',\n description: 'An array of tags assigned to the file by auto tagging.\\n',\n items: {\n type: 'object',\n properties: {\n confidence: {\n type: 'number',\n description: 'Confidence score of the tag.'\n },\n name: {\n type: 'string',\n description: 'Name of the tag.'\n },\n source: {\n type: 'string',\n description: 'Source of the tag. Possible values are `google-auto-tagging` and `aws-auto-tagging`.'\n }\n }\n }\n },\n createdAt: {\n type: 'string',\n description: 'Date and time when the file was uploaded. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n customCoordinates: {\n type: 'string',\n description: 'An string with custom coordinates of the file.\\n'\n },\n customMetadata: {\n type: 'object',\n description: 'An object with custom metadata for the file.\\n',\n additionalProperties: true\n },\n description: {\n type: 'string',\n description: 'Optional text to describe the contents of the file. Can be set by the user or the ai-auto-description extension.\\n'\n },\n fileId: {\n type: 'string',\n description: 'Unique identifier of the asset.'\n },\n filePath: {\n type: 'string',\n description: 'Path of the file. This is the path you would use in the URL to access the file. For example, if the file is at the root of the media library, the path will be `/file.jpg`. If the file is inside a folder named `images`, the path will be `/images/file.jpg`.\\n'\n },\n fileType: {\n type: 'string',\n description: 'Type of the file. Possible values are `image`, `non-image`.\\n'\n },\n hasAlpha: {\n type: 'boolean',\n description: 'Specifies if the image has an alpha channel.\\n'\n },\n height: {\n type: 'number',\n description: 'Height of the file.\\n'\n },\n isPrivateFile: {\n type: 'boolean',\n description: 'Specifies if the file is private or not.\\n'\n },\n isPublished: {\n type: 'boolean',\n description: 'Specifies if the file is published or not.\\n'\n },\n mime: {\n type: 'string',\n description: 'MIME type of the file.\\n'\n },\n name: {\n type: 'string',\n description: 'Name of the asset.'\n },\n selectedFieldsSchema: {\n type: 'object',\n description: 'This field is included in the response only if the Path policy feature is available in the plan.\\nIt contains schema definitions for the custom metadata fields selected for the specified file path.\\nField selection can only be done when the Path policy feature is enabled.\\n\\nKeys are the names of the custom metadata fields; the value object has details about the custom metadata schema.\\n',\n additionalProperties: true\n },\n size: {\n type: 'number',\n description: 'Size of the file in bytes.\\n'\n },\n tags: {\n type: 'array',\n description: 'An array of tags assigned to the file. Tags are used to search files in the media library.\\n',\n items: {\n type: 'string'\n }\n },\n thumbnail: {\n type: 'string',\n description: 'URL of the thumbnail image. This URL is used to access the thumbnail image of the file in the media library.\\n'\n },\n type: {\n type: 'string',\n description: 'Type of the asset.',\n enum: [ 'file',\n 'file-version'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'Date and time when the file was last updated. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n url: {\n type: 'string',\n description: 'URL of the file.\\n'\n },\n versionInfo: {\n type: 'object',\n description: 'An object with details of the file version.\\n',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier of the file version.'\n },\n name: {\n type: 'string',\n description: 'Name of the file version.'\n }\n }\n },\n width: {\n type: 'number',\n description: 'Width of the file.\\n'\n }\n }\n }\n }\n}\n```",
18
- inputSchema: {
19
- type: 'object',
20
- properties: {
21
- fileId: {
22
- type: 'string',
23
- },
24
- jq_filter: {
25
- type: 'string',
26
- title: 'jq Filter',
27
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
28
- },
29
- },
30
- required: ['fileId'],
31
- },
32
- annotations: {
33
- readOnlyHint: true,
34
- },
35
- };
36
- const handler = async (client, args) => {
37
- const { fileId, jq_filter, ...body } = args;
38
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.files.get(fileId)));
39
- };
40
- exports.handler = handler;
41
- exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
42
- //# sourceMappingURL=get-files.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-files.js","sourceRoot":"","sources":["../../src/tools/files/get-files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAA8E;AAKjE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,4BAA4B;IACtC,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,WAAW;IACjB,WAAW,EACT,+xKAA+xK;IACjyK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACnD,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,38 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { maybeFilter } from '@imagekit/api-mcp/filtering';
3
- import { asTextContentResult } from '@imagekit/api-mcp/tools/types';
4
- export const metadata = {
5
- resource: 'files',
6
- operation: 'read',
7
- tags: [],
8
- httpMethod: 'get',
9
- httpPath: '/v1/files/{fileId}/details',
10
- operationId: 'get-file-details',
11
- };
12
- export const tool = {
13
- name: 'get_files',
14
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nThis API returns an object with details or attributes about the current version of the file.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/file',\n $defs: {\n file: {\n type: 'object',\n title: 'File & File Version',\n description: 'Object containing details of a file or file version.',\n properties: {\n AITags: {\n type: 'array',\n description: 'An array of tags assigned to the file by auto tagging.\\n',\n items: {\n type: 'object',\n properties: {\n confidence: {\n type: 'number',\n description: 'Confidence score of the tag.'\n },\n name: {\n type: 'string',\n description: 'Name of the tag.'\n },\n source: {\n type: 'string',\n description: 'Source of the tag. Possible values are `google-auto-tagging` and `aws-auto-tagging`.'\n }\n }\n }\n },\n createdAt: {\n type: 'string',\n description: 'Date and time when the file was uploaded. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n customCoordinates: {\n type: 'string',\n description: 'An string with custom coordinates of the file.\\n'\n },\n customMetadata: {\n type: 'object',\n description: 'An object with custom metadata for the file.\\n',\n additionalProperties: true\n },\n description: {\n type: 'string',\n description: 'Optional text to describe the contents of the file. Can be set by the user or the ai-auto-description extension.\\n'\n },\n fileId: {\n type: 'string',\n description: 'Unique identifier of the asset.'\n },\n filePath: {\n type: 'string',\n description: 'Path of the file. This is the path you would use in the URL to access the file. For example, if the file is at the root of the media library, the path will be `/file.jpg`. If the file is inside a folder named `images`, the path will be `/images/file.jpg`.\\n'\n },\n fileType: {\n type: 'string',\n description: 'Type of the file. Possible values are `image`, `non-image`.\\n'\n },\n hasAlpha: {\n type: 'boolean',\n description: 'Specifies if the image has an alpha channel.\\n'\n },\n height: {\n type: 'number',\n description: 'Height of the file.\\n'\n },\n isPrivateFile: {\n type: 'boolean',\n description: 'Specifies if the file is private or not.\\n'\n },\n isPublished: {\n type: 'boolean',\n description: 'Specifies if the file is published or not.\\n'\n },\n mime: {\n type: 'string',\n description: 'MIME type of the file.\\n'\n },\n name: {\n type: 'string',\n description: 'Name of the asset.'\n },\n selectedFieldsSchema: {\n type: 'object',\n description: 'This field is included in the response only if the Path policy feature is available in the plan.\\nIt contains schema definitions for the custom metadata fields selected for the specified file path.\\nField selection can only be done when the Path policy feature is enabled.\\n\\nKeys are the names of the custom metadata fields; the value object has details about the custom metadata schema.\\n',\n additionalProperties: true\n },\n size: {\n type: 'number',\n description: 'Size of the file in bytes.\\n'\n },\n tags: {\n type: 'array',\n description: 'An array of tags assigned to the file. Tags are used to search files in the media library.\\n',\n items: {\n type: 'string'\n }\n },\n thumbnail: {\n type: 'string',\n description: 'URL of the thumbnail image. This URL is used to access the thumbnail image of the file in the media library.\\n'\n },\n type: {\n type: 'string',\n description: 'Type of the asset.',\n enum: [ 'file',\n 'file-version'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'Date and time when the file was last updated. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n url: {\n type: 'string',\n description: 'URL of the file.\\n'\n },\n versionInfo: {\n type: 'object',\n description: 'An object with details of the file version.\\n',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier of the file version.'\n },\n name: {\n type: 'string',\n description: 'Name of the file version.'\n }\n }\n },\n width: {\n type: 'number',\n description: 'Width of the file.\\n'\n }\n }\n }\n }\n}\n```",
15
- inputSchema: {
16
- type: 'object',
17
- properties: {
18
- fileId: {
19
- type: 'string',
20
- },
21
- jq_filter: {
22
- type: 'string',
23
- title: 'jq Filter',
24
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
25
- },
26
- },
27
- required: ['fileId'],
28
- },
29
- annotations: {
30
- readOnlyHint: true,
31
- },
32
- };
33
- export const handler = async (client, args) => {
34
- const { fileId, jq_filter, ...body } = args;
35
- return asTextContentResult(await maybeFilter(jq_filter, await client.files.get(fileId)));
36
- };
37
- export default { metadata, tool, handler };
38
- //# sourceMappingURL=get-files.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-files.mjs","sourceRoot":"","sources":["../../src/tools/files/get-files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,6BAA6B;OAClD,EAAY,mBAAmB,EAAE,MAAM,+BAA+B;AAK7E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,4BAA4B;IACtC,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,WAAW;IACjB,WAAW,EACT,+xKAA+xK;IACjyK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACnD,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,45 +0,0 @@
1
- import { Metadata } from '@imagekit/api-mcp/tools/types';
2
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
- import ImageKit from '@imagekit/nodejs';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
7
- declare const _default: {
8
- metadata: Metadata;
9
- tool: {
10
- [x: string]: unknown;
11
- name: string;
12
- inputSchema: {
13
- [x: string]: unknown;
14
- type: "object";
15
- properties?: {
16
- [x: string]: unknown;
17
- } | undefined;
18
- required?: string[] | undefined;
19
- };
20
- title?: string | undefined;
21
- description?: string | undefined;
22
- outputSchema?: {
23
- [x: string]: unknown;
24
- type: "object";
25
- properties?: {
26
- [x: string]: unknown;
27
- } | undefined;
28
- required?: string[] | undefined;
29
- } | undefined;
30
- annotations?: {
31
- [x: string]: unknown;
32
- title?: string | undefined;
33
- readOnlyHint?: boolean | undefined;
34
- destructiveHint?: boolean | undefined;
35
- idempotentHint?: boolean | undefined;
36
- openWorldHint?: boolean | undefined;
37
- } | undefined;
38
- _meta?: {
39
- [x: string]: unknown;
40
- } | undefined;
41
- };
42
- handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
43
- };
44
- export default _default;
45
- //# sourceMappingURL=get-files-metadata.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-files-metadata.d.mts","sourceRoot":"","sources":["../../../src/tools/files/metadata/get-files-metadata.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,+BAA+B;OAEtE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,kBAAkB;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,45 +0,0 @@
1
- import { Metadata } from '@imagekit/api-mcp/tools/types';
2
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
- import ImageKit from '@imagekit/nodejs';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
7
- declare const _default: {
8
- metadata: Metadata;
9
- tool: {
10
- [x: string]: unknown;
11
- name: string;
12
- inputSchema: {
13
- [x: string]: unknown;
14
- type: "object";
15
- properties?: {
16
- [x: string]: unknown;
17
- } | undefined;
18
- required?: string[] | undefined;
19
- };
20
- title?: string | undefined;
21
- description?: string | undefined;
22
- outputSchema?: {
23
- [x: string]: unknown;
24
- type: "object";
25
- properties?: {
26
- [x: string]: unknown;
27
- } | undefined;
28
- required?: string[] | undefined;
29
- } | undefined;
30
- annotations?: {
31
- [x: string]: unknown;
32
- title?: string | undefined;
33
- readOnlyHint?: boolean | undefined;
34
- destructiveHint?: boolean | undefined;
35
- idempotentHint?: boolean | undefined;
36
- openWorldHint?: boolean | undefined;
37
- } | undefined;
38
- _meta?: {
39
- [x: string]: unknown;
40
- } | undefined;
41
- };
42
- handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
43
- };
44
- export default _default;
45
- //# sourceMappingURL=get-files-metadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-files-metadata.d.ts","sourceRoot":"","sources":["../../../src/tools/files/metadata/get-files-metadata.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,+BAA+B;OAEtE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,kBAAkB;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.handler = exports.tool = exports.metadata = void 0;
5
- const filtering_1 = require("@imagekit/api-mcp/filtering");
6
- const types_1 = require("@imagekit/api-mcp/tools/types");
7
- exports.metadata = {
8
- resource: 'files.metadata',
9
- operation: 'read',
10
- tags: [],
11
- httpMethod: 'get',
12
- httpPath: '/v1/files/{fileId}/metadata',
13
- operationId: 'get-uploaded-file-metadata',
14
- };
15
- exports.tool = {
16
- name: 'get_files_metadata',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nYou can programmatically get image EXIF, pHash, and other metadata for uploaded files in the ImageKit.io media library using this API.\n\nYou can also get the metadata in upload API response by passing `metadata` in `responseFields` parameter.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/metadata',\n $defs: {\n metadata: {\n type: 'object',\n description: 'JSON object containing metadata.',\n properties: {\n audioCodec: {\n type: 'string',\n description: 'The audio codec used in the video (only for video).'\n },\n bitRate: {\n type: 'integer',\n description: 'The bit rate of the video in kbps (only for video).'\n },\n density: {\n type: 'integer',\n description: 'The density of the image in DPI.'\n },\n duration: {\n type: 'integer',\n description: 'The duration of the video in seconds (only for video).'\n },\n exif: {\n type: 'object',\n properties: {\n exif: {\n type: 'object',\n description: 'Object containing Exif details.',\n properties: {\n ApertureValue: {\n type: 'number'\n },\n ColorSpace: {\n type: 'integer'\n },\n CreateDate: {\n type: 'string'\n },\n CustomRendered: {\n type: 'integer'\n },\n DateTimeOriginal: {\n type: 'string'\n },\n ExifImageHeight: {\n type: 'integer'\n },\n ExifImageWidth: {\n type: 'integer'\n },\n ExifVersion: {\n type: 'string'\n },\n ExposureCompensation: {\n type: 'number'\n },\n ExposureMode: {\n type: 'integer'\n },\n ExposureProgram: {\n type: 'integer'\n },\n ExposureTime: {\n type: 'number'\n },\n Flash: {\n type: 'integer'\n },\n FlashpixVersion: {\n type: 'string'\n },\n FNumber: {\n type: 'number'\n },\n FocalLength: {\n type: 'integer'\n },\n FocalPlaneResolutionUnit: {\n type: 'integer'\n },\n FocalPlaneXResolution: {\n type: 'number'\n },\n FocalPlaneYResolution: {\n type: 'number'\n },\n InteropOffset: {\n type: 'integer'\n },\n ISO: {\n type: 'integer'\n },\n MeteringMode: {\n type: 'integer'\n },\n SceneCaptureType: {\n type: 'integer'\n },\n ShutterSpeedValue: {\n type: 'number'\n },\n SubSecTime: {\n type: 'string'\n },\n WhiteBalance: {\n type: 'integer'\n }\n }\n },\n gps: {\n type: 'object',\n description: 'Object containing GPS information.',\n properties: {\n GPSVersionID: {\n type: 'array',\n items: {\n type: 'integer'\n }\n }\n }\n },\n image: {\n type: 'object',\n description: 'Object containing EXIF image information.',\n properties: {\n ExifOffset: {\n type: 'integer'\n },\n GPSInfo: {\n type: 'integer'\n },\n Make: {\n type: 'string'\n },\n Model: {\n type: 'string'\n },\n ModifyDate: {\n type: 'string'\n },\n Orientation: {\n type: 'integer'\n },\n ResolutionUnit: {\n type: 'integer'\n },\n Software: {\n type: 'string'\n },\n XResolution: {\n type: 'integer'\n },\n YCbCrPositioning: {\n type: 'integer'\n },\n YResolution: {\n type: 'integer'\n }\n }\n },\n interoperability: {\n type: 'object',\n description: 'JSON object.',\n properties: {\n InteropIndex: {\n type: 'string'\n },\n InteropVersion: {\n type: 'string'\n }\n }\n },\n makernote: {\n type: 'object',\n additionalProperties: true\n },\n thumbnail: {\n type: 'object',\n description: 'Object containing Thumbnail information.',\n properties: {\n Compression: {\n type: 'integer'\n },\n ResolutionUnit: {\n type: 'integer'\n },\n ThumbnailLength: {\n type: 'integer'\n },\n ThumbnailOffset: {\n type: 'integer'\n },\n XResolution: {\n type: 'integer'\n },\n YResolution: {\n type: 'integer'\n }\n }\n }\n }\n },\n format: {\n type: 'string',\n description: 'The format of the file (e.g., \\'jpg\\', \\'mp4\\').'\n },\n hasColorProfile: {\n type: 'boolean',\n description: 'Indicates if the image has a color profile.'\n },\n hasTransparency: {\n type: 'boolean',\n description: 'Indicates if the image contains transparent areas.'\n },\n height: {\n type: 'integer',\n description: 'The height of the image or video in pixels.'\n },\n pHash: {\n type: 'string',\n description: 'Perceptual hash of the image.'\n },\n quality: {\n type: 'integer',\n description: 'The quality indicator of the image.'\n },\n size: {\n type: 'integer',\n description: 'The file size in bytes.'\n },\n videoCodec: {\n type: 'string',\n description: 'The video codec used in the video (only for video).'\n },\n width: {\n type: 'integer',\n description: 'The width of the image or video in pixels.'\n }\n }\n }\n }\n}\n```",
18
- inputSchema: {
19
- type: 'object',
20
- properties: {
21
- fileId: {
22
- type: 'string',
23
- },
24
- jq_filter: {
25
- type: 'string',
26
- title: 'jq Filter',
27
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
28
- },
29
- },
30
- required: ['fileId'],
31
- },
32
- annotations: {
33
- readOnlyHint: true,
34
- },
35
- };
36
- const handler = async (client, args) => {
37
- const { fileId, jq_filter, ...body } = args;
38
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.files.metadata.get(fileId)));
39
- };
40
- exports.handler = handler;
41
- exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
42
- //# sourceMappingURL=get-files-metadata.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-files-metadata.js","sourceRoot":"","sources":["../../../src/tools/files/metadata/get-files-metadata.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAA8E;AAKjE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,6BAA6B;IACvC,WAAW,EAAE,4BAA4B;CAC1C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,q5OAAq5O;IACv5O,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACnD,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACpG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,38 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { maybeFilter } from '@imagekit/api-mcp/filtering';
3
- import { asTextContentResult } from '@imagekit/api-mcp/tools/types';
4
- export const metadata = {
5
- resource: 'files.metadata',
6
- operation: 'read',
7
- tags: [],
8
- httpMethod: 'get',
9
- httpPath: '/v1/files/{fileId}/metadata',
10
- operationId: 'get-uploaded-file-metadata',
11
- };
12
- export const tool = {
13
- name: 'get_files_metadata',
14
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nYou can programmatically get image EXIF, pHash, and other metadata for uploaded files in the ImageKit.io media library using this API.\n\nYou can also get the metadata in upload API response by passing `metadata` in `responseFields` parameter.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/metadata',\n $defs: {\n metadata: {\n type: 'object',\n description: 'JSON object containing metadata.',\n properties: {\n audioCodec: {\n type: 'string',\n description: 'The audio codec used in the video (only for video).'\n },\n bitRate: {\n type: 'integer',\n description: 'The bit rate of the video in kbps (only for video).'\n },\n density: {\n type: 'integer',\n description: 'The density of the image in DPI.'\n },\n duration: {\n type: 'integer',\n description: 'The duration of the video in seconds (only for video).'\n },\n exif: {\n type: 'object',\n properties: {\n exif: {\n type: 'object',\n description: 'Object containing Exif details.',\n properties: {\n ApertureValue: {\n type: 'number'\n },\n ColorSpace: {\n type: 'integer'\n },\n CreateDate: {\n type: 'string'\n },\n CustomRendered: {\n type: 'integer'\n },\n DateTimeOriginal: {\n type: 'string'\n },\n ExifImageHeight: {\n type: 'integer'\n },\n ExifImageWidth: {\n type: 'integer'\n },\n ExifVersion: {\n type: 'string'\n },\n ExposureCompensation: {\n type: 'number'\n },\n ExposureMode: {\n type: 'integer'\n },\n ExposureProgram: {\n type: 'integer'\n },\n ExposureTime: {\n type: 'number'\n },\n Flash: {\n type: 'integer'\n },\n FlashpixVersion: {\n type: 'string'\n },\n FNumber: {\n type: 'number'\n },\n FocalLength: {\n type: 'integer'\n },\n FocalPlaneResolutionUnit: {\n type: 'integer'\n },\n FocalPlaneXResolution: {\n type: 'number'\n },\n FocalPlaneYResolution: {\n type: 'number'\n },\n InteropOffset: {\n type: 'integer'\n },\n ISO: {\n type: 'integer'\n },\n MeteringMode: {\n type: 'integer'\n },\n SceneCaptureType: {\n type: 'integer'\n },\n ShutterSpeedValue: {\n type: 'number'\n },\n SubSecTime: {\n type: 'string'\n },\n WhiteBalance: {\n type: 'integer'\n }\n }\n },\n gps: {\n type: 'object',\n description: 'Object containing GPS information.',\n properties: {\n GPSVersionID: {\n type: 'array',\n items: {\n type: 'integer'\n }\n }\n }\n },\n image: {\n type: 'object',\n description: 'Object containing EXIF image information.',\n properties: {\n ExifOffset: {\n type: 'integer'\n },\n GPSInfo: {\n type: 'integer'\n },\n Make: {\n type: 'string'\n },\n Model: {\n type: 'string'\n },\n ModifyDate: {\n type: 'string'\n },\n Orientation: {\n type: 'integer'\n },\n ResolutionUnit: {\n type: 'integer'\n },\n Software: {\n type: 'string'\n },\n XResolution: {\n type: 'integer'\n },\n YCbCrPositioning: {\n type: 'integer'\n },\n YResolution: {\n type: 'integer'\n }\n }\n },\n interoperability: {\n type: 'object',\n description: 'JSON object.',\n properties: {\n InteropIndex: {\n type: 'string'\n },\n InteropVersion: {\n type: 'string'\n }\n }\n },\n makernote: {\n type: 'object',\n additionalProperties: true\n },\n thumbnail: {\n type: 'object',\n description: 'Object containing Thumbnail information.',\n properties: {\n Compression: {\n type: 'integer'\n },\n ResolutionUnit: {\n type: 'integer'\n },\n ThumbnailLength: {\n type: 'integer'\n },\n ThumbnailOffset: {\n type: 'integer'\n },\n XResolution: {\n type: 'integer'\n },\n YResolution: {\n type: 'integer'\n }\n }\n }\n }\n },\n format: {\n type: 'string',\n description: 'The format of the file (e.g., \\'jpg\\', \\'mp4\\').'\n },\n hasColorProfile: {\n type: 'boolean',\n description: 'Indicates if the image has a color profile.'\n },\n hasTransparency: {\n type: 'boolean',\n description: 'Indicates if the image contains transparent areas.'\n },\n height: {\n type: 'integer',\n description: 'The height of the image or video in pixels.'\n },\n pHash: {\n type: 'string',\n description: 'Perceptual hash of the image.'\n },\n quality: {\n type: 'integer',\n description: 'The quality indicator of the image.'\n },\n size: {\n type: 'integer',\n description: 'The file size in bytes.'\n },\n videoCodec: {\n type: 'string',\n description: 'The video codec used in the video (only for video).'\n },\n width: {\n type: 'integer',\n description: 'The width of the image or video in pixels.'\n }\n }\n }\n }\n}\n```",
15
- inputSchema: {
16
- type: 'object',
17
- properties: {
18
- fileId: {
19
- type: 'string',
20
- },
21
- jq_filter: {
22
- type: 'string',
23
- title: 'jq Filter',
24
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
25
- },
26
- },
27
- required: ['fileId'],
28
- },
29
- annotations: {
30
- readOnlyHint: true,
31
- },
32
- };
33
- export const handler = async (client, args) => {
34
- const { fileId, jq_filter, ...body } = args;
35
- return asTextContentResult(await maybeFilter(jq_filter, await client.files.metadata.get(fileId)));
36
- };
37
- export default { metadata, tool, handler };
38
- //# sourceMappingURL=get-files-metadata.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-files-metadata.mjs","sourceRoot":"","sources":["../../../src/tools/files/metadata/get-files-metadata.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,6BAA6B;OAClD,EAAY,mBAAmB,EAAE,MAAM,+BAA+B;AAK7E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,6BAA6B;IACvC,WAAW,EAAE,4BAA4B;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,q5OAAq5O;IACv5O,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACnD,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACpG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,45 +0,0 @@
1
- import { Metadata } from '@imagekit/api-mcp/tools/types';
2
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
- import ImageKit from '@imagekit/nodejs';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
7
- declare const _default: {
8
- metadata: Metadata;
9
- tool: {
10
- [x: string]: unknown;
11
- name: string;
12
- inputSchema: {
13
- [x: string]: unknown;
14
- type: "object";
15
- properties?: {
16
- [x: string]: unknown;
17
- } | undefined;
18
- required?: string[] | undefined;
19
- };
20
- title?: string | undefined;
21
- description?: string | undefined;
22
- outputSchema?: {
23
- [x: string]: unknown;
24
- type: "object";
25
- properties?: {
26
- [x: string]: unknown;
27
- } | undefined;
28
- required?: string[] | undefined;
29
- } | undefined;
30
- annotations?: {
31
- [x: string]: unknown;
32
- title?: string | undefined;
33
- readOnlyHint?: boolean | undefined;
34
- destructiveHint?: boolean | undefined;
35
- idempotentHint?: boolean | undefined;
36
- openWorldHint?: boolean | undefined;
37
- } | undefined;
38
- _meta?: {
39
- [x: string]: unknown;
40
- } | undefined;
41
- };
42
- handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
43
- };
44
- export default _default;
45
- //# sourceMappingURL=get-from-url-files-metadata.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-from-url-files-metadata.d.mts","sourceRoot":"","sources":["../../../src/tools/files/metadata/get-from-url-files-metadata.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,+BAA+B;OAEtE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,kBAAkB;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,45 +0,0 @@
1
- import { Metadata } from '@imagekit/api-mcp/tools/types';
2
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
- import ImageKit from '@imagekit/nodejs';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
7
- declare const _default: {
8
- metadata: Metadata;
9
- tool: {
10
- [x: string]: unknown;
11
- name: string;
12
- inputSchema: {
13
- [x: string]: unknown;
14
- type: "object";
15
- properties?: {
16
- [x: string]: unknown;
17
- } | undefined;
18
- required?: string[] | undefined;
19
- };
20
- title?: string | undefined;
21
- description?: string | undefined;
22
- outputSchema?: {
23
- [x: string]: unknown;
24
- type: "object";
25
- properties?: {
26
- [x: string]: unknown;
27
- } | undefined;
28
- required?: string[] | undefined;
29
- } | undefined;
30
- annotations?: {
31
- [x: string]: unknown;
32
- title?: string | undefined;
33
- readOnlyHint?: boolean | undefined;
34
- destructiveHint?: boolean | undefined;
35
- idempotentHint?: boolean | undefined;
36
- openWorldHint?: boolean | undefined;
37
- } | undefined;
38
- _meta?: {
39
- [x: string]: unknown;
40
- } | undefined;
41
- };
42
- handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
43
- };
44
- export default _default;
45
- //# sourceMappingURL=get-from-url-files-metadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-from-url-files-metadata.d.ts","sourceRoot":"","sources":["../../../src/tools/files/metadata/get-from-url-files-metadata.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,+BAA+B;OAEtE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,kBAAkB;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.handler = exports.tool = exports.metadata = void 0;
5
- const filtering_1 = require("@imagekit/api-mcp/filtering");
6
- const types_1 = require("@imagekit/api-mcp/tools/types");
7
- exports.metadata = {
8
- resource: 'files.metadata',
9
- operation: 'read',
10
- tags: [],
11
- httpMethod: 'get',
12
- httpPath: '/v1/files/metadata',
13
- operationId: 'get-metadata-from-url',
14
- };
15
- exports.tool = {
16
- name: 'get_from_url_files_metadata',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet image EXIF, pHash, and other metadata from ImageKit.io powered remote URL using this API.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/metadata',\n $defs: {\n metadata: {\n type: 'object',\n description: 'JSON object containing metadata.',\n properties: {\n audioCodec: {\n type: 'string',\n description: 'The audio codec used in the video (only for video).'\n },\n bitRate: {\n type: 'integer',\n description: 'The bit rate of the video in kbps (only for video).'\n },\n density: {\n type: 'integer',\n description: 'The density of the image in DPI.'\n },\n duration: {\n type: 'integer',\n description: 'The duration of the video in seconds (only for video).'\n },\n exif: {\n type: 'object',\n properties: {\n exif: {\n type: 'object',\n description: 'Object containing Exif details.',\n properties: {\n ApertureValue: {\n type: 'number'\n },\n ColorSpace: {\n type: 'integer'\n },\n CreateDate: {\n type: 'string'\n },\n CustomRendered: {\n type: 'integer'\n },\n DateTimeOriginal: {\n type: 'string'\n },\n ExifImageHeight: {\n type: 'integer'\n },\n ExifImageWidth: {\n type: 'integer'\n },\n ExifVersion: {\n type: 'string'\n },\n ExposureCompensation: {\n type: 'number'\n },\n ExposureMode: {\n type: 'integer'\n },\n ExposureProgram: {\n type: 'integer'\n },\n ExposureTime: {\n type: 'number'\n },\n Flash: {\n type: 'integer'\n },\n FlashpixVersion: {\n type: 'string'\n },\n FNumber: {\n type: 'number'\n },\n FocalLength: {\n type: 'integer'\n },\n FocalPlaneResolutionUnit: {\n type: 'integer'\n },\n FocalPlaneXResolution: {\n type: 'number'\n },\n FocalPlaneYResolution: {\n type: 'number'\n },\n InteropOffset: {\n type: 'integer'\n },\n ISO: {\n type: 'integer'\n },\n MeteringMode: {\n type: 'integer'\n },\n SceneCaptureType: {\n type: 'integer'\n },\n ShutterSpeedValue: {\n type: 'number'\n },\n SubSecTime: {\n type: 'string'\n },\n WhiteBalance: {\n type: 'integer'\n }\n }\n },\n gps: {\n type: 'object',\n description: 'Object containing GPS information.',\n properties: {\n GPSVersionID: {\n type: 'array',\n items: {\n type: 'integer'\n }\n }\n }\n },\n image: {\n type: 'object',\n description: 'Object containing EXIF image information.',\n properties: {\n ExifOffset: {\n type: 'integer'\n },\n GPSInfo: {\n type: 'integer'\n },\n Make: {\n type: 'string'\n },\n Model: {\n type: 'string'\n },\n ModifyDate: {\n type: 'string'\n },\n Orientation: {\n type: 'integer'\n },\n ResolutionUnit: {\n type: 'integer'\n },\n Software: {\n type: 'string'\n },\n XResolution: {\n type: 'integer'\n },\n YCbCrPositioning: {\n type: 'integer'\n },\n YResolution: {\n type: 'integer'\n }\n }\n },\n interoperability: {\n type: 'object',\n description: 'JSON object.',\n properties: {\n InteropIndex: {\n type: 'string'\n },\n InteropVersion: {\n type: 'string'\n }\n }\n },\n makernote: {\n type: 'object',\n additionalProperties: true\n },\n thumbnail: {\n type: 'object',\n description: 'Object containing Thumbnail information.',\n properties: {\n Compression: {\n type: 'integer'\n },\n ResolutionUnit: {\n type: 'integer'\n },\n ThumbnailLength: {\n type: 'integer'\n },\n ThumbnailOffset: {\n type: 'integer'\n },\n XResolution: {\n type: 'integer'\n },\n YResolution: {\n type: 'integer'\n }\n }\n }\n }\n },\n format: {\n type: 'string',\n description: 'The format of the file (e.g., \\'jpg\\', \\'mp4\\').'\n },\n hasColorProfile: {\n type: 'boolean',\n description: 'Indicates if the image has a color profile.'\n },\n hasTransparency: {\n type: 'boolean',\n description: 'Indicates if the image contains transparent areas.'\n },\n height: {\n type: 'integer',\n description: 'The height of the image or video in pixels.'\n },\n pHash: {\n type: 'string',\n description: 'Perceptual hash of the image.'\n },\n quality: {\n type: 'integer',\n description: 'The quality indicator of the image.'\n },\n size: {\n type: 'integer',\n description: 'The file size in bytes.'\n },\n videoCodec: {\n type: 'string',\n description: 'The video codec used in the video (only for video).'\n },\n width: {\n type: 'integer',\n description: 'The width of the image or video in pixels.'\n }\n }\n }\n }\n}\n```",
18
- inputSchema: {
19
- type: 'object',
20
- properties: {
21
- url: {
22
- type: 'string',
23
- description: 'Should be a valid file URL. It should be accessible using your ImageKit.io account.\n',
24
- },
25
- jq_filter: {
26
- type: 'string',
27
- title: 'jq Filter',
28
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
29
- },
30
- },
31
- required: ['url'],
32
- },
33
- annotations: {
34
- readOnlyHint: true,
35
- },
36
- };
37
- const handler = async (client, args) => {
38
- const { jq_filter, ...body } = args;
39
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.files.metadata.getFromURL(body)));
40
- };
41
- exports.handler = handler;
42
- exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
43
- //# sourceMappingURL=get-from-url-files-metadata.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-from-url-files-metadata.js","sourceRoot":"","sources":["../../../src/tools/files/metadata/get-from-url-files-metadata.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAA8E;AAKjE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,+vOAA+vO;IACjwO,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uFAAuF;aACrG;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,KAAK,CAAC;KAClB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACzG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,39 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { maybeFilter } from '@imagekit/api-mcp/filtering';
3
- import { asTextContentResult } from '@imagekit/api-mcp/tools/types';
4
- export const metadata = {
5
- resource: 'files.metadata',
6
- operation: 'read',
7
- tags: [],
8
- httpMethod: 'get',
9
- httpPath: '/v1/files/metadata',
10
- operationId: 'get-metadata-from-url',
11
- };
12
- export const tool = {
13
- name: 'get_from_url_files_metadata',
14
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet image EXIF, pHash, and other metadata from ImageKit.io powered remote URL using this API.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/metadata',\n $defs: {\n metadata: {\n type: 'object',\n description: 'JSON object containing metadata.',\n properties: {\n audioCodec: {\n type: 'string',\n description: 'The audio codec used in the video (only for video).'\n },\n bitRate: {\n type: 'integer',\n description: 'The bit rate of the video in kbps (only for video).'\n },\n density: {\n type: 'integer',\n description: 'The density of the image in DPI.'\n },\n duration: {\n type: 'integer',\n description: 'The duration of the video in seconds (only for video).'\n },\n exif: {\n type: 'object',\n properties: {\n exif: {\n type: 'object',\n description: 'Object containing Exif details.',\n properties: {\n ApertureValue: {\n type: 'number'\n },\n ColorSpace: {\n type: 'integer'\n },\n CreateDate: {\n type: 'string'\n },\n CustomRendered: {\n type: 'integer'\n },\n DateTimeOriginal: {\n type: 'string'\n },\n ExifImageHeight: {\n type: 'integer'\n },\n ExifImageWidth: {\n type: 'integer'\n },\n ExifVersion: {\n type: 'string'\n },\n ExposureCompensation: {\n type: 'number'\n },\n ExposureMode: {\n type: 'integer'\n },\n ExposureProgram: {\n type: 'integer'\n },\n ExposureTime: {\n type: 'number'\n },\n Flash: {\n type: 'integer'\n },\n FlashpixVersion: {\n type: 'string'\n },\n FNumber: {\n type: 'number'\n },\n FocalLength: {\n type: 'integer'\n },\n FocalPlaneResolutionUnit: {\n type: 'integer'\n },\n FocalPlaneXResolution: {\n type: 'number'\n },\n FocalPlaneYResolution: {\n type: 'number'\n },\n InteropOffset: {\n type: 'integer'\n },\n ISO: {\n type: 'integer'\n },\n MeteringMode: {\n type: 'integer'\n },\n SceneCaptureType: {\n type: 'integer'\n },\n ShutterSpeedValue: {\n type: 'number'\n },\n SubSecTime: {\n type: 'string'\n },\n WhiteBalance: {\n type: 'integer'\n }\n }\n },\n gps: {\n type: 'object',\n description: 'Object containing GPS information.',\n properties: {\n GPSVersionID: {\n type: 'array',\n items: {\n type: 'integer'\n }\n }\n }\n },\n image: {\n type: 'object',\n description: 'Object containing EXIF image information.',\n properties: {\n ExifOffset: {\n type: 'integer'\n },\n GPSInfo: {\n type: 'integer'\n },\n Make: {\n type: 'string'\n },\n Model: {\n type: 'string'\n },\n ModifyDate: {\n type: 'string'\n },\n Orientation: {\n type: 'integer'\n },\n ResolutionUnit: {\n type: 'integer'\n },\n Software: {\n type: 'string'\n },\n XResolution: {\n type: 'integer'\n },\n YCbCrPositioning: {\n type: 'integer'\n },\n YResolution: {\n type: 'integer'\n }\n }\n },\n interoperability: {\n type: 'object',\n description: 'JSON object.',\n properties: {\n InteropIndex: {\n type: 'string'\n },\n InteropVersion: {\n type: 'string'\n }\n }\n },\n makernote: {\n type: 'object',\n additionalProperties: true\n },\n thumbnail: {\n type: 'object',\n description: 'Object containing Thumbnail information.',\n properties: {\n Compression: {\n type: 'integer'\n },\n ResolutionUnit: {\n type: 'integer'\n },\n ThumbnailLength: {\n type: 'integer'\n },\n ThumbnailOffset: {\n type: 'integer'\n },\n XResolution: {\n type: 'integer'\n },\n YResolution: {\n type: 'integer'\n }\n }\n }\n }\n },\n format: {\n type: 'string',\n description: 'The format of the file (e.g., \\'jpg\\', \\'mp4\\').'\n },\n hasColorProfile: {\n type: 'boolean',\n description: 'Indicates if the image has a color profile.'\n },\n hasTransparency: {\n type: 'boolean',\n description: 'Indicates if the image contains transparent areas.'\n },\n height: {\n type: 'integer',\n description: 'The height of the image or video in pixels.'\n },\n pHash: {\n type: 'string',\n description: 'Perceptual hash of the image.'\n },\n quality: {\n type: 'integer',\n description: 'The quality indicator of the image.'\n },\n size: {\n type: 'integer',\n description: 'The file size in bytes.'\n },\n videoCodec: {\n type: 'string',\n description: 'The video codec used in the video (only for video).'\n },\n width: {\n type: 'integer',\n description: 'The width of the image or video in pixels.'\n }\n }\n }\n }\n}\n```",
15
- inputSchema: {
16
- type: 'object',
17
- properties: {
18
- url: {
19
- type: 'string',
20
- description: 'Should be a valid file URL. It should be accessible using your ImageKit.io account.\n',
21
- },
22
- jq_filter: {
23
- type: 'string',
24
- title: 'jq Filter',
25
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
26
- },
27
- },
28
- required: ['url'],
29
- },
30
- annotations: {
31
- readOnlyHint: true,
32
- },
33
- };
34
- export const handler = async (client, args) => {
35
- const { jq_filter, ...body } = args;
36
- return asTextContentResult(await maybeFilter(jq_filter, await client.files.metadata.getFromURL(body)));
37
- };
38
- export default { metadata, tool, handler };
39
- //# sourceMappingURL=get-from-url-files-metadata.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-from-url-files-metadata.mjs","sourceRoot":"","sources":["../../../src/tools/files/metadata/get-from-url-files-metadata.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,6BAA6B;OAClD,EAAY,mBAAmB,EAAE,MAAM,+BAA+B;AAK7E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,+vOAA+vO;IACjwO,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uFAAuF;aACrG;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,KAAK,CAAC;KAClB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACzG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}