Skip to content

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

Screenshot fix

Magnus Müllerf3bca4c936c6
diff --git a/browser_use/tools/service.py b/browser_use/tools/service.py
index a1af31c8a..52b76bd85 100644
--- a/browser_use/tools/service.py
+++ b/browser_use/tools/service.py
@@ -846,6 +846,7 @@ You will be given a query and the markdown of a webpage that has been filtered t
@self.registry.action(
'Get a screenshot of the current viewport. Use when: visual inspection needed, layout unclear, element positions uncertain, debugging UI issues, or verifying page state. Screenshot is included in the next browser_state No parameters are needed.',
+ param_model=NoParamsAction,
)
async def screenshot(_: NoParamsAction):
"""Request that a screenshot be included in the next observation"""