generateCodeSnippet
Turns natural language network build instructions into executable PTBuilder JavaScript code. Use your desired Cisco Packet Tracer topology, get runnable code.
Instructions
Use AI (Gemini) to generate PTBuilder JavaScript code from a natural language description. Returns executable JavaScript code that can be run in the PTBuilder code editor. Requires GEMINI_API_KEY environment variable or ~/.cisco-pt-mcp/config.json with gemini_api_key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | Natural language description of what to build. Example: 'Create 5 switches in a line and connect them sequentially' |