code-api-surface
Extract HTTP routes, exported symbols, and middleware from source code via static analysis. Supports Express, FastAPI, Flask, Django, Spring Boot, ASP.NET, Rails, Gin. Returns JSON.
Instructions
Analyzes a code snippet and returns its API surface: HTTP routes (method + path), exported symbols, and middleware. Supports Express, FastAPI, Flask, Django, Spring Boot, ASP.NET, Rails, Gin. Pure static analysis — no code execution. Returns JSON with routes[], exports[], middleware[], lang, framework, and a plain-English summary. $0.10/call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Source code to analyze (any language/framework). Max ~50KB recommended. | |
| detail | No | Output scope: 'full' (default) = all fields; 'routes' = HTTP routes only; 'exports' = exported symbols only. |