contentrain_scan
Extract content strings from source code using three modes: graph for dependency mapping, candidates for filtered paginated extraction, and summary for aggregate stats. Read-only and deterministic.
Instructions
Scan project source code for content strings. Three modes: "graph" builds import/component graph for project intelligence, "candidates" extracts string literals with pre-filtering and pagination, "summary" provides quick overview stats. Read-only — no changes to disk or git. MCP finds strings deterministically; the agent decides what is content. Recommended workflow: start with "summary" or "graph" for orientation, then paginate through "candidates" to evaluate strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Scan mode. Default: candidates | |
| paths | No | Directories to scan (relative to project root). Default: auto-detect | |
| include | No | File extensions to include. Default: .tsx, .jsx, .vue, .ts, .js, .mjs, .astro, .svelte | |
| exclude | No | Additional directory names to exclude | |
| limit | No | Candidates mode: batch size. Default: 50 | |
| offset | No | Candidates mode: pagination offset. Default: 0 | |
| min_length | No | Candidates mode: minimum string length. Default: 2 | |
| max_length | No | Candidates mode: maximum string length. Default: 500 |