tags.suggest
Proposes net-new tags for a file by matching its distinctive terms against tags applied to other files. Returns scored suggestions from the local corpus, excluding already-used tags.
Instructions
Propose tags for a file by mining the existing tag corpus via FTS — picks distinctive terms from the file (≥4 chars, stopword-filtered) and returns tags applied to other files that score high on those terms. No LLM, no network. Already-applied tags are excluded so the suggestions are net-new. Read-only; no side effects, auth, or rate limits. Returns {file_id, path, existing_tags, suggestions: [{tag, score, sources}]}. Empty suggestions = no distinctive terms or no overlap with the existing taxonomy yet — bootstrap with tags.add first. Default limit 10, max 50. Suggestions are NOT auto-applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max suggestions to return (default 10) | |
| file_id | Yes | File ID to suggest tags for |