Manage content search index
drive_content_indexCreate and manage an encrypted local full-text index of file contents in a named folder, with update, status, and clear actions. It reads supported files and skips sensitive names.
Instructions
Opt-in (PROTON_DRIVE_CONTENT_INDEX=1) encrypted local full-text index of file CONTENT in the folder you name; the key is kept in the OS keychain. action 'update' (default) indexes text, markdown, .docx and text-layer .pdf files two at a time, skips secret-looking names (.env, *.pem, *.key, id_rsa, names with password/secret/credential) and files over PROTON_DRIVE_READ_MAX_BYTES, and only re-reads changed files; if partial:true, call again to continue. 'status' reports counts, size, folders and key backend; 'clear' deletes the index file and its keychain key. Changes nothing on Drive; writes one local file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder to index (required for update, e.g. /my-files/Documents). Never defaults to the whole drive. | |
| action | No | update (default), status or clear. | |
| maxFiles | No | Max files read per update (default 200). | |
| maxFileMB | No | Skip files larger than this (default 20). | |
| timeBudgetMs | No | Stop starting new files after this long (default 25000). |