topology_routes
Identifies HTTP handlers and CLI entry-points by scanning code topology for Go, Python, and Swift framework patterns, returning matched routes with confidence annotations.
Instructions
Scans topology nodes to identify HTTP handler and CLI entry-point functions. Matches Go patterns (http.HandleFunc, r.GET/POST, mux.Handle, Cobra cmd.Run/RunE), Python patterns (@app.route, @router.get, FastAPI path decorators), and Swift/Vapor patterns (RouteCollection.boot, configure(_:Application), ParsableCommand.run). Results carry confidence annotations — these are pattern-matched, not type-resolved. Returns a clear message when no routes match or topology is disabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of route entries to return. Default 20. | |
| framework | No | Optional framework hint: 'gin', 'chi', 'mux', 'echo', 'cobra', 'fastapi', 'flask', 'vapor', 'argument-parser'. Omit to scan all known patterns. | |
| path_prefix | No | Optional path prefix filter for route handlers (e.g. '/api/'). |