Wrap hardcoded JSX text
verbaly_wrapFinds hardcoded user-visible text in JSX/TSX files and wraps it in t tagged templates so the compiler can extract it for translation. Reports changes by default; set write to apply them safely.
Instructions
Find hardcoded user-visible text in JSX/TSX files and wrap it in a t tagged template so the compiler can extract it (what verbaly wrap does). This is how an existing codebase is onboarded, and verbaly_extract then adds the wrapped texts to the catalogs. It only reports unless write is set, and text already wrapped is skipped, so running it again is safe. Text it cannot wrap safely (a sentence split across markup, an expression rendering JSX) is listed as needing a human. A file that does not bind t is never written, because the rewrite would not compile. It comes back in blocked, with the binding this project needs there, so you can add it and run again.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "verbaly_wrap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Project root holding verbaly.config (defaults to the server working directory) | |
| write | No | Apply the rewrites instead of only reporting |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | JSX/TSX files scanned | |
| write | Yes | ||
| blocked | Yes | ||
| changed | Yes | Files the rewrite touched, or would touch | |
| skipped | Yes | ||
| wrapped | Yes |