From 7072d2cfe8fe90fe8694f58e3395d0765495b382 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 8 Apr 2026 07:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20query=5Finstalled=5Fplugin?= =?UTF-8?q?s.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/agent/tools/impl/query_installed_plugins.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/agent/tools/impl/query_installed_plugins.py b/app/agent/tools/impl/query_installed_plugins.py index 6363d64e..d6b7c04d 100644 --- a/app/agent/tools/impl/query_installed_plugins.py +++ b/app/agent/tools/impl/query_installed_plugins.py @@ -61,10 +61,10 @@ class QueryInstalledPluginsTool(MoviePilotTool): total_count = len(plugins_list) result_json = json.dumps(plugins_list, ensure_ascii=False, indent=2) - if total_count > 50: - limited_plugins = plugins_list[:50] + if total_count > 100: + limited_plugins = plugins_list[:100] limited_json = json.dumps(limited_plugins, ensure_ascii=False, indent=2) - return f"注意:共找到 {total_count} 个已安装插件,为节省上下文空间,仅显示前 50 个。\n\n{limited_json}" + return f"注意:共找到 {total_count} 个已安装插件,为节省上下文空间,仅显示前 100 个。\n\n{limited_json}" return result_json except Exception as e: