Spaces:
Running on Zero
Running on Zero
File size: 912 Bytes
8a28a8d ca9a89c 8a28a8d ca9a89c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | """
MCP Tool: get_task_list
Get a list of all supported image generation task types along with their required/optional parameter lists.
"""
from .common import _TASK_DEFINITIONS
import copy
def handle_get_task_list() -> list:
"""Get a list of all supported image generation task types along with their required/optional parameter lists."""
tasks = copy.deepcopy(_TASK_DEFINITIONS)
for task in tasks:
if "image" in task["required_inputs"] or "images" in task["required_inputs"]:
task["image_input_alternatives"] = {
"choose_exactly_one": ["image", "images", "numbered fields (img1 / 图1 / image1, ...)"],
"description": "image is a single source; images is an ordered list. Numbered fields replace images. See get_model_features.image_workflows for task/run_mode constraints. Never send multiple forms together.",
}
return tasks
|