tag_search_results
Search files with full-text query and add tags to all matching results in one call.
Instructions
Bulk-tag — run an FTS search and append add_tags to every matching file in one call. Side effect: each match gets addTags applied (additive, idempotent per tag); the matched files themselves are NOT modified beyond their tag links. Per-file failures isolated to errors[]. No external auth or rate limits. There is NO dry-run flag, so ALWAYS run search with the same query first to verify the match set before tagging. The tags[] filter requires existing tags to ALL match (it scopes the search; it does not control which tags get added). Returns {matched_count, tagged_count, tags_applied, tagged_ids, errors}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Full-text search query | |
| add_tags | Yes | Tags to add to every matching file | |
| project_id | No | ||
| tags | No | Filter — only matches that already carry ALL of these tags | |
| favorite | No |