Search Translations
search_translationsSearch translation files by key or value using case-insensitive substring matching to prevent duplicate translations.
Instructions
Search translation files by key path or value. Simple case-insensitive substring match — not fuzzy or regex. Useful for finding existing translations before adding duplicates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Substring to search for. Matched against translation keys and/or string values. Case-insensitive. Example: "save" matches key "common.actions.save" or value "Save changes". | |
| searchIn | No | Whether to search in translation keys, values, or both. Default: "both". | |
| layer | No | Layer name to search in (e.g., "root", "app-admin"), or "*" for all layers. If omitted, searches all layers. Call discover to discover available layers. | |
| locale | No | Locale code to search in (e.g., "en", "de"). If omitted, searches all locales. | |
| projectDir | No | Absolute path to the Nuxt project root. Defaults to server cwd. Example: "/home/user/my-app". | |
| outputFile | No | Absolute path to write full JSON output. Returns only a compact summary to the caller — use this for large outputs to avoid flooding the conversation context. Example: "/tmp/search-results.json" |