Audit Local Codebase AI Readiness & Manifest Structure
audit_local_codebaseInspects a local project directory on disk (checking package.json, public/robots.txt, public/llms.txt, and public/.well-known/ai-catalog.json) and returns a Markdown compliance report with per-file pass/fail status, a 6-line /llms.txt preview, and remediation links. Use this tool only when auditing local source files inside an IDE workspace; do not use it to scan a live HTTPS website (use audit_ai_readiness instead) or to synthesize manifests from a remote domain (use generate_ai_manifests instead). If targetDir contains a public/ subfolder, discovery files are checked inside public/ first before falling back to targetDir root. Performs a 100% read-only local check with zero file writes, requires no API key, has no rate limit, and returns an error message if targetDir is unreadable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"targetDir": "<targetDir>"
},
"name": "audit_local_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetDir | Yes | Relative or absolute local workspace directory path to inspect (e.g., "./", ".", or "/workspace/app"). Must point to a readable project folder. | |
| includePreview | No | Optional flag (defaults to true). When true, appends a 6-line preview of the synthesized /llms.txt index derived from package.json metadata; when false, returns only the structural pass/fail checklist. |