Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix(mcp): ensure extracted content is used in next step (#2582)

sudhanshu112233shukla5b8d6aa01437
diff --git a/browser_use/mcp/client.py b/browser_use/mcp/client.py
index b53e8a75f..46db1a15e 100644
--- a/browser_use/mcp/client.py
+++ b/browser_use/mcp/client.py
@@ -329,6 +329,7 @@ class MCPClient:
return ActionResult(
extracted_content=extracted_content,
long_term_memory=f"Used MCP tool '{tool.name}' from {self.server_name}",
+ include_extracted_content_only_once=True,
)
except Exception as e:
@@ -372,6 +373,7 @@ class MCPClient:
return ActionResult(
extracted_content=extracted_content,
long_term_memory=f"Used MCP tool '{tool.name}' from {self.server_name}",
+ include_extracted_content_only_once=True,
)
except Exception as e: