diff --git a/en/guides/workflow/debug-and-preview/variable-inspect.mdx b/en/guides/workflow/debug-and-preview/variable-inspect.mdx index 76c94208..5cab29b4 100644 --- a/en/guides/workflow/debug-and-preview/variable-inspect.mdx +++ b/en/guides/workflow/debug-and-preview/variable-inspect.mdx @@ -1,37 +1,37 @@ --- -title: Variable Inspector +title: Variable Inspect --- -The **Variable Inspector** is a panel located at the bottom of the workflow editor. It captures the input and output data of each node after execution, helping developers quickly identify issues and verify data flow throughout the workflow. +The **Variable Inspect** is a panel located at the bottom of the workflow editor. It captures the input and output data of each node after execution, helping developers quickly identify issues and verify data flow throughout the workflow. ## Why It Matters [Variables](/en/guides/workflow/variables) act as key connectors between nodes and enable dynamic flow control. In workflow applications, variables store user input as well as outputs from each node — such as LLM responses, tool results, conversation context, and environment parameters. -The Variable Inspector automatically caches each node's input parameters and output results after execution. It provides the following key features: +The Variable Inspect automatically caches each node's input parameters and output results after execution. It provides the following key features: - **Real-time variable monitoring**: Captures and displays all variables right after a node runs, including workflow inputs and outputs. - **Edit cached variables**: Lets you manually change most variable types without re-running upstream nodes — ideal for testing different scenarios. - **Abnormal data tracking**: Displays the actual value and type of each variable, making it easier to identify format issues, missing fields, or type mismatches. - **Global state management**: Displays all variables in a single panel, including system variables, environment variables, and custom-defined node variables. -With the Variable Inspector, you can easily view and edit the latest output variables from any node to see how changes affect downstream nodes. +With the Variable Inspect, you can easily view and edit the latest output variables from any node to see how changes affect downstream nodes. ## How to Use -The Variable Inspector is located at the bottom of the canvas and updates in real time as the workflow runs. +The Variable Inspect is located at the bottom of the canvas and updates in real time as the workflow runs. After a node runs, its output variables show up in the panel so you can quickly inspect or edit them. ![](https://assets-docs.dify.ai/2025/06/38f26d7339f64abfdfb6955b1c34f4ae.png) -The following is an example of how to use the Variable Inspector in an "external database query" application. In this workflow, an LLM node receives natural language input, translates it into SQL, sends the query to a remote database, and retrieves the data. +The following is an example of how to use the Variable Inspect in an "external database query" application. In this workflow, an LLM node receives natural language input, translates it into SQL, sends the query to a remote database, and retrieves the data. > Click [here](https://assets-docs.dify.ai/2025/06/ac4da5ed5506f8a34aae7f0b88323f37.yml) to download the DSL workflow file. ### Viewing -Once a node is executed, its output variables automatically appear in the Variable Inspector. Click a variable to view its detailed content. +Once a node is executed, its output variables automatically appear in the Variable Inspect. Click a variable to view its detailed content. ![](https://assets-docs.dify.ai/2025/06/94a4741c25204db5fd1281ec475093d9.png) @@ -51,7 +51,7 @@ Click a variable’s value to edit it. The updated value will be used by downstr - The user manually modifies the SQL in the Variable Inspector to `SELECT username FROM users;` and re-runs only the database node. The system returns a list of usernames. + The user manually modifies the SQL in the Variable Inspect to `SELECT username FROM users;` and re-runs only the database node. The system returns a list of usernames. This allows the user to test new data by re-running only the downstream database node without restarting the entire workflow. @@ -72,7 +72,7 @@ Click **Reset all** in the top-left corner to clear every cached variable at onc ### Supported Variable Types -The following types appear in the Variable Inspector. Some of them can be edited. +The following types appear in the Variable Inspect. Some of them can be edited. | Type | Example | Description | |-----------------------|-----------------------------------------|--------------------------------------------| diff --git a/zh-hans/guides/workflow/debug-and-preview/variable-inspect.mdx b/zh-hans/guides/workflow/debug-and-preview/variable-inspect.mdx index 5121e3f9..536fd1f2 100644 --- a/zh-hans/guides/workflow/debug-and-preview/variable-inspect.mdx +++ b/zh-hans/guides/workflow/debug-and-preview/variable-inspect.mdx @@ -2,7 +2,7 @@ title: 变量检查 --- -变量检查(Variable Inspect)是一个位于工作流应用底部的看板,记录各个节点在执行任务后的输入输出数据,帮助开发者快速定位问题和验证数据流转。 +变量检查(Variable Inspect)是一个位于工作流应用底部的看板,记录各个节点在执行任务后的输入输出数据,帮助开发者快速定位问题和验证数据流转。 ## 功能价值 @@ -68,20 +68,7 @@ title: 变量检查 点击左上角 Reset all 按钮,清空所有变量缓存。 -{/* -支持展示的变量类型 - -以下变量类型将会在变量视图内进行展示,且部分变量允许被编辑。 - -| 变量类别 | 示例变量 | 描述 | -|---------|---------|------| -| **系统变量** | sys.query, sys.user_id, sys.conversation_id | 系统提供的当前会话信息 | -| **环境变量** | OPENAI_KEY, SECRET | 系统环境配置 | -| **自定义变量** | [用户定义名称], 文件变量 | 用户在开始节点中自定义的输入变量,上传的文件变量 | -| **节点输出变量** | output, structured_output, usage, loop_variable, iteration_variable | 各节点的输出结果 | - -*/} {/* Contributing Section