From 8d3b42c84101df05874e343bb12e2592b5a0f90e Mon Sep 17 00:00:00 2001 From: zyqzyq Date: Thu, 14 May 2026 11:15:34 +0800 Subject: [PATCH] add show_on to ToolParameter --- src/dify_plugin/entities/tool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dify_plugin/entities/tool.py b/src/dify_plugin/entities/tool.py index 5fda0019..01403a74 100644 --- a/src/dify_plugin/entities/tool.py +++ b/src/dify_plugin/entities/tool.py @@ -14,6 +14,7 @@ from dify_plugin.entities import I18nObject, ParameterOption from dify_plugin.entities.invoke_message import InvokeMessage from dify_plugin.entities.model.message import PromptMessageTool +from dify_plugin.entities.model.provider import FormShowOnObject from dify_plugin.entities.oauth import OAuthSchema from dify_plugin.entities.provider_config import ( CommonParameterType, @@ -122,6 +123,7 @@ class ToolParameterForm(Enum): options: list[ToolParameterOption] | None = None # MCP object and array type parameters use this field to store the schema input_schema: Mapping[str, Any] | None = None + show_on: list[FormShowOnObject] = Field(default_factory=list) @docs(