{
  "groups": [
    {
      "group_id": "runcomfy_lifecycle",
      "name": "RunComfy 生命周期管理",
      "description": "云端 ComfyUI 环境的完整生命周期管理工具组，包括启动、执行、停止三个步骤",
      "category": "remote",
      "tool_ids": [
        "launch_comfy_env",
        "runcomfy_workflow_executor",
        "runcomfy_stop_env"
      ],
      "usage_order": [
        "launch_comfy_env",
        "runcomfy_workflow_executor",
        "runcomfy_stop_env"
      ],
      "usage_example": "1. 使用 launch_comfy_env 启动云端环境，获取 server_id\n2. 使用 runcomfy_workflow_executor 在该环境上执行工作流，传入 server_id\n3. 使用 runcomfy_stop_env 停止环境释放资源，传入 server_id"
    },
    {
      "group_id": "ji_meng_task_lifecycle",
      "name": "即梦任务（创建与查询）",
      "description": "先创建任务获取 task_id，再查询结果",
      "category": "local",
      "tool_ids": [
        "ji_meng_add_task",
        "ji_meng_query_task"
      ],
      "usage_order": [
        "ji_meng_add_task",
        "ji_meng_query_task"
      ],
      "usage_example": "1. 调用 ji_meng_add_task 传入 prompt，得到 task_id\n2. 轮询 ji_meng_query_task 传入 task_id，直到完成"
    },
    {
      "group_id": "flux_bfl_lifecycle",
      "name": "FLUX（BFL 提交与轮询）",
      "description": "先提交生图拿到 id 与 polling_url，再轮询直至 Ready",
      "category": "remote",
      "tool_ids": [
        "flux_submit",
        "flux_query"
      ],
      "usage_order": [
        "flux_submit",
        "flux_query"
      ],
      "usage_example": "1. flux_submit 传入 model（如 flux-2-pro-preview）、prompt，得到 id 与 polling_url\n2. 反复调用 flux_query 传入 polling_url、request_id（即 id），直到 status 为 Ready，从 result.sample 取图（签名 URL 约 10 分钟有效）"
    },
    {
      "group_id": "midjourney_lifecycle",
      "name": "Midjourney（提交、查状态、取图）",
      "description": "先提交任务，轮询状态完成后获取四张图链接",
      "category": "remote",
      "tool_ids": [
        "midjourney_submit_job",
        "midjourney_query_job_status",
        "midjourney_get_image_urls"
      ],
      "usage_order": [
        "midjourney_submit_job",
        "midjourney_query_job_status",
        "midjourney_get_image_urls"
      ],
      "usage_example": "1. midjourney_submit_job：cookie、prompt、user_id、mode(relaxed|fast) 得 job_id\n2. 轮询 midjourney_query_job_status：cookie、job_id 直至完成\n3. midjourney_get_image_urls：job_id 取四张图 URL"
    }
  ],
  "version": "1.0"
}
