Skip to content

Commit 5d45c50

Browse files
committed
feat: add playwright_tools
1 parent 19d820f commit 5d45c50

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

veadk/skills/skills_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class SkillsPlugin(BasePlugin):
4949
ReadFileTool(),
5050
WriteFileTool(),
5151
EditFileTool(),
52+
playwright_tools
5253
]
5354
)
5455

veadk/tools/skills_tools/skills_toolset.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from google.adk.tools import BaseTool, FunctionTool
2828
from google.adk.tools.base_toolset import BaseToolset
2929

30+
from veadk.tools.builtin_tools.playwright import playwright_tools
3031
from veadk.tools.skills_tools import (
3132
SkillsTool,
3233
read_file_tool,
@@ -48,6 +49,7 @@ class SkillsToolset(BaseToolset):
4849
3. WriteFileTool - Write/create files
4950
4. EditFileTool - Edit files with precise replacements
5051
5. BashTool - Execute shell commands
52+
6. playwright_tools - Operate the browser
5153
5254
Skills provide specialized domain knowledge and scripts that the agent can use
5355
to solve complex tasks. The toolset enables discovery of available skills,
@@ -71,6 +73,7 @@ def __init__(self, skills_directory: str | Path, skills_space_name: Optional[str
7173
self.write_file_tool = FunctionTool(write_file_tool)
7274
self.edit_file_tool = FunctionTool(edit_file_tool)
7375
self.bash_tool = FunctionTool(bash_tool)
76+
self.playwright_tools = playwright_tools
7477

7578
@override
7679
async def get_tools(
@@ -87,4 +90,5 @@ async def get_tools(
8790
self.write_file_tool,
8891
self.edit_file_tool,
8992
self.bash_tool,
93+
self.playwright_tools,
9094
]

0 commit comments

Comments
 (0)