get_web_project_context
Analyze local web projects to identify entrypoints, routing surfaces, configuration files, and framework details for frontend development context.
Instructions
Inspect a local root path and return frontend-oriented context such as entrypoints, routing surfaces, config files, and framework hints.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes |
Implementation Reference
- src/repo-inspector.ts:107-136 (handler)Implementation of the getWebProjectContext tool logic, which inspects a repository and identifies the best package context.
export function getWebProjectContext(root: string): WebProjectContextResult { const discovery = inspectRepository(root); const candidate = selectBestContextPackage(discovery.packages, discovery.root); if (!candidate) { return { root: discovery.root, packageRoot: null, kind: "unknown", confidence: "low", frameworkHints: [], entryPoints: [], routingSurfaces: [], configFiles: [], signals: [], }; } return { root: discovery.root, packageRoot: candidate.packageRoot, kind: candidate.kind, confidence: candidate.confidence, frameworkHints: deriveFrameworkHints(candidate), entryPoints: candidate.entryPoints, routingSurfaces: candidate.routeFiles, configFiles: candidate.configFiles, signals: candidate.signals, }; }