Skip to content

Commit 5ac8798

Browse files
committed
update format
1 parent 6f12fb3 commit 5ac8798

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

veadk/tools/builtin_tools/playwright.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset, StdioConnectionParams, StdioServerParameters
1+
from google.adk.tools.mcp_tool.mcp_toolset import (
2+
MCPToolset,
3+
StdioConnectionParams,
4+
StdioServerParameters,
5+
)
26
import subprocess
37
from veadk.utils.logger import get_logger
48

59
logger = get_logger(__name__)
610

11+
712
def check_env():
813
try:
914
result = subprocess.run(
@@ -16,18 +21,19 @@ def check_env():
1621
"Check `npx` command failed. Please install `npx` command manually."
1722
) from e
1823

24+
1925
check_env()
2026

2127
playwright_tools = MCPToolset(
2228
connection_params=StdioConnectionParams(
2329
server_params=StdioServerParameters(
24-
command='npx',
30+
command="npx",
2531
args=[
2632
"-y",
2733
"@playwright/mcp@latest",
2834
],
2935
),
30-
timeout=30
36+
timeout=30,
3137
),
3238
# tool_filter=['browser_navigate', 'browser_screenshot', 'browser_fill', 'browser_click']
3339
)

0 commit comments

Comments
 (0)