Create a new tool function for an AG2 agent. Generates properly typed, documented tool functions with JSON return contracts and error handling.
$npx -y skills add ag2ai/ag2-claude-plugins --skill new-toolInstalls into the current project.
Run `npx skills use "https://github.com/ag2ai/ag2-claude-plugins" --skill "ag2ai/ag2-claude-plugins/new-tool"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/ag2ai/ag2-claude-plugins" that are relevant to the current task. Run `npx skills add "https://github.com/ag2ai/ag2-claude-plugins"` and select the relevant skills, then follow their instructions.