Command
/new-tool
Create a tool function for an AG2 agent with type annotations, docstrings, and JSON return contracts. No context-switch needed.
/new-tool is a Claude Code command you can drop into a project. It plugs into the Claude Code workflow directly, so it is useful when a task keeps recurring and you want it handled the same way each time.
If something here is out of date, the source link below is always the canonical reference.
| Type | Command |
|---|
/command add new-toolHow to use it
- Add the file to `.claude/agents/` (subagent) or `.claude/commands/` in your project.
- Restart Claude Code so it registers the new entry.
- Invoke it by name, or let the main session delegate to it.
Compiled and written by HowToPrompts from public sources.
← Back to Agents & Commands