ADK Tool Scaffold Skill
This skill automates the creation of standard BaseTool implementations for the Agent Development Kit.
Instructions
- •
Identify the Tool Name: Extract the name of the tool the user wants to build (e.g., "StockPrice", "EmailSender").
- •
Review the Example: Check
examples/WeatherTool.pyto understand the expected structure of an ADK tool (imports, inheritance, schema). - •
Run the Scaffolder: Execute the python script to generate the initial file.
bashpython scripts/scaffold_tool.py <ToolName>
- •
Refine: After generation, you must edit the file to:
- •Update the
executemethod with real logic. - •Define the JSON schema in
get_schema.
- •Update the
Example Usage
User: "Create a tool to search Wikipedia." Agent:
- •Runs
python scripts/scaffold_tool.py WikipediaSearch - •Editing
WikipediaSearchTool.pyto add therequestslogic andqueryargument schema.