registry.json 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023
  1. {
  2. "tools": [
  3. {
  4. "tool_id": "image_stitcher",
  5. "name": "图片拼接工具",
  6. "category": "cv",
  7. "description": "将多张图片按指定方向(水平/垂直/网格)拼接成一张大图。支持间距设置、背景色填充和统一缩放模式。输入支持网络 URL 链接和 Base64,输出直接返回一张拼接成功的干净云端长效外链(URL)。",
  8. "input_schema": {
  9. "properties": {
  10. "background_color": {
  11. "default": "#FFFFFF",
  12. "description": "间距填充背景色,十六进制颜色值",
  13. "type": "string"
  14. },
  15. "columns": {
  16. "default": 2,
  17. "description": "grid 模式下每行的列数",
  18. "minimum": 1,
  19. "type": "integer"
  20. },
  21. "direction": {
  22. "default": "horizontal",
  23. "description": "拼接方向:horizontal=水平,vertical=垂直,grid=网格",
  24. "enum": [
  25. "horizontal",
  26. "vertical",
  27. "grid"
  28. ],
  29. "type": "string"
  30. },
  31. "images": {
  32. "description": "图片数据源列表,强烈推荐传递 http:// 或 https:// 网络链接!兼容 Base64 编码,至少 2 张",
  33. "items": {
  34. "type": "string"
  35. },
  36. "minItems": 2,
  37. "type": "array"
  38. },
  39. "resize_mode": {
  40. "default": "none",
  41. "description": "缩放模式:none=不缩放,fit_width=统一宽度,fit_height=统一高度",
  42. "enum": [
  43. "none",
  44. "fit_width",
  45. "fit_height"
  46. ],
  47. "type": "string"
  48. },
  49. "spacing": {
  50. "default": 0,
  51. "description": "图片间距(像素)",
  52. "minimum": 0,
  53. "type": "integer"
  54. }
  55. },
  56. "reason": "图片拼接工具输入参数定义",
  57. "required": [
  58. "images"
  59. ],
  60. "type": "object"
  61. },
  62. "output_schema": {
  63. "properties": {
  64. "url": {
  65. "description": "拼接成功的持久化外链",
  66. "type": "string"
  67. },
  68. "width": {
  69. "description": "结果图宽度(像素)",
  70. "type": "integer"
  71. },
  72. "height": {
  73. "description": "结果图高度(像素)",
  74. "type": "integer"
  75. }
  76. },
  77. "reason": "图片拼接工具输出结果定义",
  78. "required": [
  79. "image",
  80. "width",
  81. "height"
  82. ],
  83. "type": "object"
  84. },
  85. "stream_support": false,
  86. "status": "active",
  87. "backend_runtime": "local",
  88. "group_ids": [],
  89. "tool_slug_ids": []
  90. },
  91. {
  92. "tool_id": "liblibai_controlnet",
  93. "name": "LibLib AI 综合生成工具",
  94. "category": "cv",
  95. "description": "基于 LibLib AI 开放 API 的万能生成引擎。支持【多路并发控制】:允许在一次请求中同时投喂多个 ControlNet(如同时传入 OpenPose + Canny + Depth),AI 会在同一张图上严格遵守所有控制条件!支持模块:canny(边缘), softedge(软边缘), lineart(线稿), openpose(姿态), depth(深度图), inpaint(蒙版重绘), instantid(换脸)。",
  96. "input_schema": {
  97. "type": "object",
  98. "properties": {
  99. "mode": {
  100. "type": "string",
  101. "description": "单路模式(可选值:text2img, img2img, canny, softedge, lineart, openpose, depth, inpaint, instantid)。如果你想跑多路并发,这个字段可以无视或默认。"
  102. },
  103. "prompt": {
  104. "type": "string",
  105. "description": "正向提示词"
  106. },
  107. "image": {
  108. "type": "string",
  109. "description": "单路模式的主参考图(支持 URL/Base64)。"
  110. },
  111. "control_nets": {
  112. "type": "array",
  113. "description": "【核心魔法】多路控制模型组!在此可同时叠加传入多个控制网参数字典(覆盖外层 mode/image)",
  114. "items": {
  115. "type": "object",
  116. "properties": {
  117. "mode": {
  118. "type": "string",
  119. "description": "控制类型: canny, softedge, lineart, openpose, depth"
  120. },
  121. "image": {
  122. "type": "string",
  123. "description": "对应的参考图 URL/Base64"
  124. },
  125. "weight": {
  126. "type": "number",
  127. "description": "控制权重,默认 1.0",
  128. "default": 1.0
  129. }
  130. },
  131. "required": [
  132. "mode",
  133. "image"
  134. ]
  135. }
  136. },
  137. "mask_image": {
  138. "type": "string",
  139. "description": "蒙版图片来源 (黑白蒙版),仅用于 mode 为 inpaint 时传入"
  140. },
  141. "pose_image": {
  142. "type": "string",
  143. "description": "人物姿态参考图来源,仅用于 mode 为 instantid 换脸时传入,指定目标面部朝向或动作"
  144. },
  145. "negative_prompt": {
  146. "type": "string",
  147. "description": "反向提示词",
  148. "default": "lowres, bad anatomy, text, error"
  149. },
  150. "width": {
  151. "type": "integer",
  152. "description": "输出宽度",
  153. "default": 512
  154. },
  155. "height": {
  156. "type": "integer",
  157. "description": "输出高度",
  158. "default": 512
  159. },
  160. "steps": {
  161. "type": "integer",
  162. "description": "采样步数",
  163. "default": 20
  164. },
  165. "cfg_scale": {
  166. "type": "number",
  167. "description": "CFG Scale 提示词引导系数",
  168. "default": 7.0
  169. },
  170. "img_count": {
  171. "type": "integer",
  172. "description": "生成图片数量",
  173. "default": 1
  174. }
  175. },
  176. "required": [
  177. "mode",
  178. "prompt"
  179. ]
  180. },
  181. "output_schema": {
  182. "type": "object",
  183. "properties": {
  184. "images": {
  185. "type": "array",
  186. "items": {
  187. "type": "string"
  188. },
  189. "description": "生成的图片 URL 列表"
  190. },
  191. "task_id": {
  192. "type": "string",
  193. "description": "任务 ID"
  194. },
  195. "status": {
  196. "type": "string",
  197. "description": "任务状态(success/failed/timeout)"
  198. }
  199. }
  200. },
  201. "stream_support": false,
  202. "status": "active",
  203. "backend_runtime": "local",
  204. "group_ids": [
  205. "liblib_ai_group"
  206. ],
  207. "tool_slug_ids": []
  208. },
  209. {
  210. "tool_id": "liblib_image_uploader",
  211. "name": "LibLib Image Uploader",
  212. "category": "utility",
  213. "description": "专为将本地图片数据转为持久化云端 URL 构建的老实工具。无论你是给它纯 Base64、带有 data:image 头部的 Base64 都会原封不动传给 Liblib 对象存储,并返回生成的临时网络跨端直连图片 URL(http...),完美解决大模型生图过程中因为超大 Base64 字符撑爆思考上下文的异常限制!只接收 Base64 字符串参数,不要传图片路径。",
  214. "input_schema": {
  215. "type": "object",
  216. "properties": {
  217. "image_base64": {
  218. "type": "string",
  219. "description": "Base64 encoded image data (e.g., data:image/png;base64,iVBORw0...)"
  220. },
  221. "filename": {
  222. "type": "string",
  223. "description": "Optional filename for extension detection",
  224. "default": "image.png"
  225. }
  226. },
  227. "required": [
  228. "image_base64"
  229. ]
  230. },
  231. "output_schema": {
  232. "type": "object",
  233. "properties": {
  234. "status": {
  235. "type": "string"
  236. },
  237. "url": {
  238. "type": "string",
  239. "description": "生成的公共网络临时或永久直连 URL,可原样喂给其它支持 HTTP 图生图组件应用!"
  240. }
  241. }
  242. },
  243. "stream_support": false,
  244. "status": "active",
  245. "backend_runtime": "local",
  246. "group_ids": [
  247. "liblib_ai_group"
  248. ],
  249. "tool_slug_ids": []
  250. },
  251. {
  252. "tool_id": "launch_comfy_env",
  253. "name": "Launch ComfyUI Environment",
  254. "category": "ai",
  255. "description": "[🔴 暂时外服不可用] 启动 RunComfy 云端机器并等待就绪。返回 server_id 用于后续 ComfyUI workflow 执行。需要环境变量 RUNCOMFY_USER_ID 和 API_TOKEN。",
  256. "input_schema": {
  257. "type": "object",
  258. "properties": {
  259. "version_id": {
  260. "type": "string",
  261. "description": "RunComfy workflow version ID",
  262. "default": "90f77137-ba75-400d-870f-204c614ae8a3"
  263. },
  264. "server_type": {
  265. "type": "string",
  266. "enum": [
  267. "medium",
  268. "large",
  269. "extra-large",
  270. "2x-large",
  271. "2xl-turbo"
  272. ],
  273. "description": "机器规格",
  274. "default": "medium"
  275. },
  276. "duration": {
  277. "type": "integer",
  278. "description": "预估运行时长(秒)",
  279. "default": 3600
  280. }
  281. }
  282. },
  283. "output_schema": {
  284. "type": "object",
  285. "properties": {
  286. "server_id": {
  287. "type": "string",
  288. "description": "机器唯一标识,用于后续操作"
  289. },
  290. "comfy_url": {
  291. "type": "string",
  292. "description": "ComfyUI 访问地址"
  293. },
  294. "status": {
  295. "type": "string",
  296. "description": "机器状态"
  297. },
  298. "usage_instruction": {
  299. "type": "string",
  300. "description": "使用说明"
  301. }
  302. },
  303. "required": [
  304. "server_id",
  305. "comfy_url",
  306. "status",
  307. "usage_instruction"
  308. ]
  309. },
  310. "stream_support": false,
  311. "status": "inactive",
  312. "backend_runtime": "local",
  313. "group_ids": [
  314. "runcomfy_lifecycle"
  315. ],
  316. "tool_slug_ids": [
  317. "comfyui"
  318. ]
  319. },
  320. {
  321. "tool_id": "runcomfy_workflow_executor",
  322. "name": "RunComfy Workflow Executor",
  323. "category": "image_generation",
  324. "description": "[🔴 暂时外服不可用] 在已就绪的 RunComfy 机器上提交 ComfyUI 工作流,上传输入文件,监听执行状态,下载结果图片(不启动/关闭机器)",
  325. "input_schema": {
  326. "type": "object",
  327. "required": [
  328. "server_id",
  329. "workflow_api"
  330. ],
  331. "properties": {
  332. "server_id": {
  333. "type": "string",
  334. "description": "已启动的 RunComfy 机器 ID"
  335. },
  336. "workflow_api": {
  337. "type": "object",
  338. "description": "ComfyUI workflow_api.json 内容(字典格式)"
  339. },
  340. "input_files": {
  341. "type": "array",
  342. "description": "可选的输入文件列表",
  343. "items": {
  344. "type": "object",
  345. "required": [
  346. "filename",
  347. "type",
  348. "base64_data"
  349. ],
  350. "properties": {
  351. "filename": {
  352. "type": "string",
  353. "description": "文件名"
  354. },
  355. "type": {
  356. "type": "string",
  357. "description": "文件类型:images/loras/checkpoints/vae/controlnet"
  358. },
  359. "base64_data": {
  360. "type": "string",
  361. "description": "文件的 Base64 编码数据"
  362. }
  363. }
  364. }
  365. }
  366. }
  367. },
  368. "output_schema": {
  369. "type": "object",
  370. "properties": {
  371. "prompt_id": {
  372. "type": "string",
  373. "description": "任务 ID"
  374. },
  375. "images": {
  376. "type": "array",
  377. "items": {
  378. "type": "string"
  379. },
  380. "description": "结果图片的 Base64 数据列表"
  381. },
  382. "status": {
  383. "type": "string",
  384. "description": "执行状态"
  385. },
  386. "server_id": {
  387. "type": "string",
  388. "description": "机器 ID"
  389. }
  390. }
  391. },
  392. "stream_support": false,
  393. "status": "inactive",
  394. "backend_runtime": "local",
  395. "group_ids": [
  396. "runcomfy_lifecycle"
  397. ],
  398. "tool_slug_ids": [
  399. "comfyui"
  400. ]
  401. },
  402. {
  403. "tool_id": "runcomfy_stop_env",
  404. "name": "RunComfy Stop Service",
  405. "category": "cloud",
  406. "description": "[🔴 暂时外服不可用] Stop and delete RunComfy server instances to release resources. Works with launch_comfy_env for complete lifecycle management.",
  407. "input_schema": {
  408. "type": "object",
  409. "properties": {
  410. "server_id": {
  411. "type": "string",
  412. "description": "The server ID to stop"
  413. }
  414. },
  415. "required": [
  416. "server_id"
  417. ]
  418. },
  419. "output_schema": {
  420. "type": "object",
  421. "properties": {
  422. "server_id": {
  423. "type": "string",
  424. "description": "The stopped server ID"
  425. },
  426. "status": {
  427. "type": "string",
  428. "description": "Deleted, NotFound, or Error"
  429. },
  430. "message": {
  431. "type": "string",
  432. "description": "Detailed result message"
  433. }
  434. }
  435. },
  436. "stream_support": false,
  437. "status": "inactive",
  438. "backend_runtime": "local",
  439. "group_ids": [
  440. "runcomfy_lifecycle"
  441. ],
  442. "tool_slug_ids": [
  443. "comfyui"
  444. ]
  445. },
  446. {
  447. "tool_id": "ji_meng_add_task",
  448. "name": "即梦-创建任务",
  449. "tool_slug_ids": [],
  450. "category": "cv",
  451. "description": "[🔴 暂时不可用/停机维护] 提交异步任务到上游(本地服务转发 JI_MENG_API_BASE,POST /add_task)。需配置 tools/local/ji_meng/.env。",
  452. "input_schema": {
  453. "type": "object",
  454. "properties": {
  455. "task_type": {
  456. "type": "string",
  457. "enum": [
  458. "image",
  459. "video"
  460. ],
  461. "description": "任务类型:图生/文生图或视频"
  462. },
  463. "prompt": {
  464. "type": "string",
  465. "description": "任务描述 / 提示词"
  466. },
  467. "image_url": {
  468. "type": "string",
  469. "description": "可选,图生类任务时的参考图 URL"
  470. }
  471. },
  472. "required": [
  473. "task_type",
  474. "prompt"
  475. ]
  476. },
  477. "output_schema": {
  478. "type": "object",
  479. "properties": {
  480. "task_id": {
  481. "type": "string",
  482. "description": "任务 ID,用于 ji_meng_query_task"
  483. },
  484. "status": {
  485. "type": "string"
  486. }
  487. }
  488. },
  489. "stream_support": false,
  490. "status": "active",
  491. "backend_runtime": "local",
  492. "group_ids": [
  493. "ji_meng_task_lifecycle"
  494. ]
  495. },
  496. {
  497. "tool_id": "ji_meng_query_task",
  498. "name": "即梦-查询任务",
  499. "tool_slug_ids": [],
  500. "category": "cv",
  501. "description": "[🔴 暂时不可用/停机维护] 按 task_id 查询任务状态与结果(本地服务转发上游,POST /query_task)。",
  502. "input_schema": {
  503. "type": "object",
  504. "properties": {
  505. "task_id": {
  506. "type": "string",
  507. "description": "ji_meng_add_task 返回的任务 ID"
  508. }
  509. },
  510. "required": [
  511. "task_id"
  512. ]
  513. },
  514. "output_schema": {
  515. "type": "object",
  516. "properties": {
  517. "task_id": {
  518. "type": "string"
  519. },
  520. "status": {
  521. "type": "string"
  522. },
  523. "message": {
  524. "type": "string"
  525. },
  526. "images": {
  527. "type": "array",
  528. "items": {
  529. "type": "string"
  530. }
  531. }
  532. }
  533. },
  534. "stream_support": false,
  535. "status": "active",
  536. "backend_runtime": "local",
  537. "group_ids": [
  538. "ji_meng_task_lifecycle"
  539. ]
  540. },
  541. {
  542. "tool_id": "nano_banana",
  543. "name": "Nano Banana(Gemini 多模态神级图模)",
  544. "tool_slug_ids": [],
  545. "category": "cv",
  546. "description": "通过 Google Gemini 原生大模型生图。它是系统内唯一原生支持【跨模态/多图融合意象生图】的模型!支持在 images 数组里丢进 N 张完全不同的图片(例如:一张人像、一把宝剑、一栋大楼),并在 prompt 中基于这几张图进行超强逻辑融合。强力推荐用来做抽象图生图、无边界的多图概念重组。",
  547. "input_schema": {
  548. "type": "object",
  549. "properties": {
  550. "prompt": {
  551. "type": "string",
  552. "description": "提示词(可以明确指代传入的多张图片,进行复杂长文本推理和跨模态生图)"
  553. },
  554. "model": {
  555. "type": "string",
  556. "description": "模型 ID;省略则使用环境变量 GEMINI_IMAGE_MODEL,默认 gemini-3.1-flash-image-preview。"
  557. },
  558. "aspect_ratio": {
  559. "type": "string",
  560. "description": "输出宽高比,如 1:1、16:9"
  561. },
  562. "image_size": {
  563. "type": "string",
  564. "description": "输出规格:512、1K、2K、4K"
  565. },
  566. "response_modalities": {
  567. "type": "array",
  568. "items": {
  569. "type": "string"
  570. },
  571. "description": "如 [\"TEXT\",\"IMAGE\"]"
  572. },
  573. "image_urls": {
  574. "type": "array",
  575. "description": "【杀手锏】参考图外链数组!允许同时传入多张关联图片的网络 URL。底层支持自动下载网图整合喂给大模型进行跨特征意象重组。",
  576. "items": {
  577. "type": "string"
  578. }
  579. }
  580. },
  581. "required": [
  582. "prompt"
  583. ]
  584. },
  585. "output_schema": {
  586. "type": "object",
  587. "properties": {
  588. "images": {
  589. "type": "array",
  590. "items": {
  591. "type": "string"
  592. },
  593. "description": "data:mime;base64,... 列表"
  594. },
  595. "model": {
  596. "type": "string",
  597. "description": "实际调用的模型 ID"
  598. },
  599. "text": {
  600. "type": "string",
  601. "description": "若返回文本部分则在此汇总"
  602. }
  603. }
  604. },
  605. "stream_support": false,
  606. "status": "active",
  607. "backend_runtime": "local",
  608. "group_ids": []
  609. },
  610. {
  611. "tool_id": "midjourney_submit_job",
  612. "name": "Midjourney-提交生图任务",
  613. "tool_slug_ids": [],
  614. "category": "cv",
  615. "description": "[🔴 暂时不可用/本地重构中] 提交 Midjourney 生图任务(转发至 MIDJOURNEY_API_BASE/submit_job)。需配置 tools/local/midjourney/.env。mode 为 relaxed 或 fast。",
  616. "input_schema": {
  617. "type": "object",
  618. "properties": {
  619. "cookie": {
  620. "type": "string",
  621. "description": "Midjourney 会话 cookie"
  622. },
  623. "prompt": {
  624. "type": "string",
  625. "description": "提示词"
  626. },
  627. "user_id": {
  628. "type": "string",
  629. "description": "用户 ID"
  630. },
  631. "mode": {
  632. "type": "string",
  633. "enum": [
  634. "relaxed",
  635. "fast"
  636. ],
  637. "description": "队列模式:relaxed 或 fast"
  638. }
  639. },
  640. "required": [
  641. "cookie",
  642. "prompt",
  643. "user_id",
  644. "mode"
  645. ]
  646. },
  647. "output_schema": {
  648. "type": "object",
  649. "description": "上游返回 JSON,通常含 job_id 或 id",
  650. "properties": {}
  651. },
  652. "stream_support": false,
  653. "status": "active",
  654. "backend_runtime": "local",
  655. "group_ids": [
  656. "midjourney_lifecycle"
  657. ]
  658. },
  659. {
  660. "tool_id": "midjourney_query_job_status",
  661. "name": "Midjourney-查询任务状态",
  662. "tool_slug_ids": [],
  663. "category": "cv",
  664. "description": "[🔴 暂时不可用/本地重构中] 查询指定任务状态(转发 MIDJOURNEY_API_BASE/query_job_status)。",
  665. "input_schema": {
  666. "type": "object",
  667. "properties": {
  668. "cookie": {
  669. "type": "string",
  670. "description": "Midjourney 会话 cookie"
  671. },
  672. "job_id": {
  673. "type": "string",
  674. "description": "submit_job 返回的任务 ID"
  675. }
  676. },
  677. "required": [
  678. "cookie",
  679. "job_id"
  680. ]
  681. },
  682. "output_schema": {
  683. "type": "object",
  684. "description": "上游状态 JSON,如 status / job_status 等",
  685. "properties": {}
  686. },
  687. "stream_support": false,
  688. "status": "active",
  689. "backend_runtime": "local",
  690. "group_ids": [
  691. "midjourney_lifecycle"
  692. ]
  693. },
  694. {
  695. "tool_id": "midjourney_get_image_urls",
  696. "name": "Midjourney-获取结果图链接",
  697. "tool_slug_ids": [],
  698. "category": "cv",
  699. "description": "[🔴 暂时不可用/本地重构中] 根据 job_id 获取 4 张图 URL(转发 MIDJOURNEY_API_BASE/get_image_urls)。",
  700. "input_schema": {
  701. "type": "object",
  702. "properties": {
  703. "job_id": {
  704. "type": "string",
  705. "description": "任务 ID"
  706. }
  707. },
  708. "required": [
  709. "job_id"
  710. ]
  711. },
  712. "output_schema": {
  713. "type": "object",
  714. "description": "上游返回 JSON 或 URL 数组,常见字段 image_urls / urls",
  715. "properties": {
  716. "image_urls": {
  717. "type": "array",
  718. "items": {
  719. "type": "string"
  720. },
  721. "description": "四张图片链接(字段名以实际服务为准)"
  722. }
  723. }
  724. },
  725. "stream_support": false,
  726. "status": "active",
  727. "backend_runtime": "local",
  728. "group_ids": [
  729. "midjourney_lifecycle"
  730. ]
  731. },
  732. {
  733. "tool_id": "flux_generate",
  734. "name": "Flux-多模态生图编辑API",
  735. "tool_slug_ids": [],
  736. "category": "cv",
  737. "description": "基于 APIyi 中转站实现的高级 Flux 图像生成与编辑(图生图/局部重绘)调用。如果只传 prompt 则触发纯文生图;如果传入 image_url (最好配合 flux-kontext-max 模型) 则触发高级图像编辑。一次性返回生成好的图片URL(临时URL,10分钟有效)。",
  738. "input_schema": {
  739. "type": "object",
  740. "properties": {
  741. "prompt": {
  742. "type": "string",
  743. "description": "正向提示词。描述图像的视觉内容,越丰富效果越好。"
  744. },
  745. "aspect_ratio": {
  746. "type": "string",
  747. "description": "图像宽高比。支持从 3:7 (竖版) 到 7:3 (横版) 的连续宽高比范围,如'1:1'(默认), '16:9', '9:16', '3:2', '2:3'。",
  748. "default": "16:9"
  749. },
  750. "model": {
  751. "type": "string",
  752. "description": "模型选型。支持 flux-2-flex, flux-2-klein-4b, flux-2-klein-9b, flux-2-max, flux-2-pro, flux-dev, flux-kontext-max, flux-kontext-pro",
  753. "default": "flux-kontext-pro",
  754. "enum": [
  755. "flux-2-flex",
  756. "flux-2-klein-4b",
  757. "flux-2-klein-9b",
  758. "flux-2-max",
  759. "flux-2-pro",
  760. "flux-dev",
  761. "flux-kontext-max",
  762. "flux-kontext-pro"
  763. ]
  764. },
  765. "seed": {
  766. "type": "integer",
  767. "description": "随机种子。固定种子可以保证在相同提示词下重现相同构图结果。"
  768. },
  769. "safety_tolerance": {
  770. "type": "integer",
  771. "description": "内容安全级别控制,0=最严格,6=最宽松,默认位2",
  772. "default": 2
  773. },
  774. "output_format": {
  775. "type": "string",
  776. "description": "输出格式,如'jpeg'或'png'",
  777. "default": "png",
  778. "enum": [
  779. "jpeg",
  780. "png"
  781. ]
  782. },
  783. "prompt_upsampling": {
  784. "type": "boolean",
  785. "description": "是否开启提示词增强。设为true时,AI会自动丰富简短的提示词,改善生图细节。",
  786. "default": false
  787. },
  788. "image_url": {
  789. "type": "string",
  790. "description": "参考图网络外链。若传入此项,则引擎切换至图生图(编辑)模式。强烈建议模型选 flux-kontext-max。"
  791. },
  792. "mask_url": {
  793. "type": "string",
  794. "description": "(选填)蒙版原图外链。必须配合 image_url 使用,白色为需要编辑区域,黑色为保护区域。"
  795. }
  796. },
  797. "required": [
  798. "prompt"
  799. ]
  800. },
  801. "output_schema": {
  802. "type": "object",
  803. "properties": {
  804. "images": {
  805. "type": "array",
  806. "items": {
  807. "type": "string"
  808. },
  809. "description": "成功生成的图片URL数组(链接10分钟有效,需使用外部工具抓取下载)"
  810. },
  811. "status": {
  812. "type": "string",
  813. "description": "结果态"
  814. }
  815. }
  816. },
  817. "stream_support": false,
  818. "status": "active",
  819. "backend_runtime": "local",
  820. "group_ids": [
  821. "flux_apiyi_group"
  822. ]
  823. },
  824. {
  825. "tool_id": "seedream_generate",
  826. "name": "SeeDream-4.0图片生成",
  827. "tool_slug_ids": [],
  828. "category": "cv",
  829. "description": "基于 APIyi 中转站实现的 SeeDream 图片生成与编辑接口。若传入 image_url 将触发高级图生图(图像编辑)。",
  830. "input_schema": {
  831. "type": "object",
  832. "properties": {
  833. "prompt": {
  834. "type": "string",
  835. "description": "正向提示词。描述图像的视觉内容。"
  836. },
  837. "model": {
  838. "type": "string",
  839. "description": "使用的模型名。支持4.0, 4.5, 5.0版本",
  840. "default": "seedream-5-0-260128",
  841. "enum": [
  842. "seedream-4-0-250828",
  843. "seedream-4-5-251128",
  844. "seedream-5-0-260128"
  845. ]
  846. },
  847. "size": {
  848. "type": "string",
  849. "description": "尺寸分辨率。支持精度如 '1024x1024' 或者直传标准如 '1K', '2K', '4K'。",
  850. "default": "2048x2048"
  851. },
  852. "quality": {
  853. "type": "string",
  854. "description": "图片质量。'standard' 或 'hd'",
  855. "default": "hd",
  856. "enum": [
  857. "standard",
  858. "hd"
  859. ]
  860. },
  861. "n": {
  862. "type": "integer",
  863. "description": "生成的图片数量",
  864. "default": 1
  865. },
  866. "image_url": {
  867. "type": "string",
  868. "description": "参考图网络外链。若传入此项,则引擎切换至图生图(编辑)模式。"
  869. }
  870. },
  871. "required": [
  872. "prompt"
  873. ]
  874. },
  875. "output_schema": {
  876. "type": "object",
  877. "properties": {
  878. "images": {
  879. "type": "array",
  880. "items": {
  881. "type": "string"
  882. },
  883. "description": "成功生成的图片URL数组。"
  884. },
  885. "status": {
  886. "type": "string",
  887. "description": "结果态"
  888. }
  889. }
  890. },
  891. "stream_support": false,
  892. "status": "active",
  893. "backend_runtime": "local",
  894. "group_ids": [
  895. "seedream_apiyi_group"
  896. ]
  897. },
  898. {
  899. "tool_id": "runcomfy_check_status",
  900. "name": "RunComfy Check Status",
  901. "description": "[🔴 暂时外服不可用] 获取当前用户的 RunComfy 机器列表和状态。可以查看是否已有机房资源,防止重复拉起新机器。",
  902. "category": "cloud",
  903. "backend_runtime": "local",
  904. "group_ids": [
  905. "runcomfy_lifecycle"
  906. ],
  907. "input_schema": {
  908. "type": "object",
  909. "properties": {
  910. "server_id": {
  911. "type": "string",
  912. "description": "可选。指定具体机器 ID 查询。为空时查询名下所有机器列表。"
  913. }
  914. }
  915. },
  916. "output_schema": {
  917. "type": "object",
  918. "properties": {
  919. "total": {
  920. "type": "integer",
  921. "description": "存在的机器总量"
  922. },
  923. "servers": {
  924. "type": "array",
  925. "items": {
  926. "type": "object"
  927. },
  928. "description": "机器状态列表,包括 server_id, current_status, main_service_url 等详细信息"
  929. }
  930. },
  931. "required": [
  932. "total",
  933. "servers"
  934. ]
  935. },
  936. "stream_support": false,
  937. "status": "inactive"
  938. },
  939. {
  940. "name": "LibLib AI 模型搜索",
  941. "category": "cv",
  942. "description": "通过关键词搜索 LibLib AI 上的最新或特定风格的大模型(比如国风、二次元、写实等)。成功返回会包括一列推荐模型实体,必须从中提取关键的 versionUuid 以获取后续生图能力。",
  943. "input_schema": {
  944. "type": "object",
  945. "properties": {
  946. "keyword": {
  947. "type": "string",
  948. "description": "搜索关键词(如 二次元, XL, 写实)"
  949. }
  950. },
  951. "required": [
  952. "keyword"
  953. ]
  954. },
  955. "output_schema": {
  956. "type": "object"
  957. },
  958. "stream_support": false,
  959. "status": "active",
  960. "backend_runtime": "local",
  961. "group_ids": [
  962. "liblib_ai_group"
  963. ],
  964. "tool_slug_ids": [],
  965. "tool_id": "liblibai_model_search"
  966. },
  967. {
  968. "name": "LibLib AI 模型详情",
  969. "category": "cv",
  970. "description": "通过检索返回的 uuid 和 version_uuid 读取指定大模型的完整上下文。常用来了解它的详细触发词、生成特点或特定参数推荐。",
  971. "input_schema": {
  972. "type": "object",
  973. "properties": {
  974. "uuid": {
  975. "type": "string",
  976. "description": "核心模型 ID (uuid)"
  977. },
  978. "version_uuid": {
  979. "type": "string",
  980. "description": "模型版本 ID (version_uuid 或 versionUuid)"
  981. }
  982. },
  983. "required": [
  984. "uuid",
  985. "version_uuid"
  986. ]
  987. },
  988. "output_schema": {
  989. "type": "object"
  990. },
  991. "stream_support": false,
  992. "status": "active",
  993. "backend_runtime": "local",
  994. "group_ids": [
  995. "liblib_ai_group"
  996. ],
  997. "tool_slug_ids": [],
  998. "tool_id": "liblibai_model_detail"
  999. },
  1000. {
  1001. "name": "LibLib AI UUID 匹配规则指南",
  1002. "category": "cv",
  1003. "description": "读取 Liblib AI 模型 UUID 匹配规则和工作流底模使用大全。在生图参数涉及到 templateUuid,或者在组合 checkpoint 和 ControlNet 且不确定对应的 baseType 和匹配值时,调用此工具来阅读核心指南!以防止你的生图因为参数错误而崩溃。",
  1004. "input_schema": {
  1005. "type": "object",
  1006. "properties": {},
  1007. "required": []
  1008. },
  1009. "output_schema": {
  1010. "type": "object"
  1011. },
  1012. "stream_support": false,
  1013. "status": "active",
  1014. "backend_runtime": "local",
  1015. "group_ids": [
  1016. "liblib_ai_group"
  1017. ],
  1018. "tool_slug_ids": [],
  1019. "tool_id": "liblibai_uuid_matching_rules"
  1020. }
  1021. ],
  1022. "version": "2.0"
  1023. }