Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix: Clean up Python command output format
Gregor Žunič5e75df3eb09c
diff --git a/browser_use/skill_cli/commands/python_exec.py b/browser_use/skill_cli/commands/python_exec.pyindex 0bcbbcfa4..c8c2cee7b 100644--- a/browser_use/skill_cli/commands/python_exec.py+++ b/browser_use/skill_cli/commands/python_exec.py@@ -50,15 +50,7 @@ async def handle(session: SessionInfo, params: dict[str, Any]) -> Any:result = await loop.run_in_executor(None, python_session.execute, code, browser_session, loop)if result.success:- return {- 'success': True,- 'output': result.output,- 'execution_count': python_session.execution_count,- }+ # Return raw text output for clean display+ return {'_raw_text': result.output} if result.output else {}else:- return {- 'success': False,- 'output': result.output,- 'error': result.error,- 'execution_count': python_session.execution_count,- }+ return {'error': result.error or 'Unknown error'}