Skip to content

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

NoParamsAction in screenshot

Magnus Müllerfce23ff75a00
diff --git a/browser_use/tools/service.py b/browser_use/tools/service.py
index a3d8d70da..f0615e393 100644
--- a/browser_use/tools/service.py
+++ b/browser_use/tools/service.py
@@ -847,7 +847,7 @@ You will be given a query and the markdown of a webpage that has been filtered t
@self.registry.action(
'Request screenshot of 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.',
)
- async def screenshot():
+ async def screenshot(_: NoParamsAction):
"""Request that a screenshot be included in the next observation"""
memory = 'Requested screenshot for next observation'
msg = f'📸 {memory}'