ingest_codebase
Index local codebases or directories into persistent, searchable project memory, update changed and deleted files, and search extracted text, AST languages, PDFs, Office files, and archives.
Instructions
Index a local file or directory persistently in separate TAM resource tables. All text formats are searchable; detected languages use tree-sitter AST. PDF/Office/archive text is extracted; other binary files have explicit metadata-only status. action=index updates changed files and removes deleted entries; preview does not write. Use action=search with query or action=status to inspect the project-scoped index. Sensitive files and excluded directories are reported without reading their contents.
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": {
"path": "<path>"
},
"name": "ingest_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| query | No | ||
| watch | No | Automatically refresh this index while the personal server runs. | |
| action | No | index | |
| offset | No | ||
| exclude | No | Override excluded directory/file glob patterns; [] includes dependency directories. Sensitive files remain protected. | |
| include | No | Extension allowlist e.g. ['.py','.go'] | |
| project | No | general | |
| sample_limit | No |