add_pattern
Add a glob pattern to an existing project to index matching files immediately, persisting the pattern for automatic re-indexing on future runs.
Instructions
Add a glob pattern to an existing project and index matching files immediately. Persists the pattern in config.yaml so it gets re-indexed automatically on future runs.
Use this when you want to index a specific set of files by pattern rather than pointing at a concrete folder path. The pattern is relative to the project base_path.
Args: project: Project name to add the pattern to (must already exist) pattern: Glob pattern relative to project base_path (e.g., "doc/specifications/**/*.md") type: File type classification — one of: source, header, documentation, config (default: documentation) description: Optional human-readable description for this source entry
Returns: Confirmation with file/chunk counts, or error message
Examples: add_pattern("my-project", "doc/specifications//*.md", "documentation", "Hardware specs") add_pattern("my-project", "src//*.json", "config", "JSON config files")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | documentation | |
| pattern | Yes | ||
| project | Yes | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |