diff --git a/backend/packages/harness/deerflow/tools/builtins/view_image_tool.py b/backend/packages/harness/deerflow/tools/builtins/view_image_tool.py index 21d662373..e47ab1938 100644 --- a/backend/packages/harness/deerflow/tools/builtins/view_image_tool.py +++ b/backend/packages/harness/deerflow/tools/builtins/view_image_tool.py @@ -9,7 +9,6 @@ from langgraph.types import Command from langgraph.typing import ContextT from deerflow.agents.thread_state import ThreadState -from deerflow.sandbox.tools import get_thread_data, replace_virtual_path @tool("view_image", parse_docstring=True) @@ -32,6 +31,8 @@ def view_image_tool( Args: image_path: Absolute path to the image file. Common formats supported: jpg, jpeg, png, webp. """ + from deerflow.sandbox.tools import get_thread_data, replace_virtual_path + # Replace virtual path with actual path # /mnt/user-data/* paths are mapped to thread-specific directories thread_data = get_thread_data(runtime)