memtomem-index · git:20261025.d86a6c8 · 2026-10-25 · sha256 a0d1f7ba218decb4

memtomem-index git:20261025.d86a6c8A

Immutable. This exact content never changes and is served at /api/v1/blob/a0d1f7ba218decb4.

---
name: memtomem-index
description: Index or re-index an explicitly selected file or directory with memtomem. Use for initial ingestion or intentional refresh after file changes.
---

# Index memory files

Derive the file or directory path from the current user request.
If the request does not clearly specify the file or directory path, ask before calling a tool — and
in a non-interactive context (a subagent or scripted run with nobody to ask), do not
stall and do not guess: stop and report `insufficient_input` naming the missing file or directory path.
A request that does specify the file or directory path proceeds normally in either context.
Require an explicit absolute file or directory path (or one starting with `~`) before calling `mem_index`; never rely on its `.` default and never pass a relative path — this server's working directory is the plugin directory, not the user's. Resolve ambiguity with the user before indexing a broad directory.

Use `force=false` and `auto_tag=false` unless the user explicitly requests otherwise. Report scanned, indexed, skipped, deleted, and blocked counts. Explain redaction or embedding-mismatch failures without bypassing them automatically.