Implement Tool Integration for a Recon Agent

implementationChallenge

Prompt Content

Implement a `PortScannerAgent` that can execute `nmap` commands. This agent should define a tool that takes a target IP and a list of scan options, executes `nmap` via a subprocess, and parses the raw XML output into a structured JSON format. Ensure the agent can share its findings with other agents using MCP.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations