gws-modelarmor-sanitize-response▌
googleworkspace/cli · updated Apr 8, 2026
Sanitize model responses through Google Model Armor templates for outbound safety.
- ›Applies Model Armor templates to filter model outputs before delivery to users
- ›Accepts text input via --text flag or piped stdin, with optional full JSON request body override
- ›Requires template resource name in format projects/PROJECT/locations/LOCATION/templates/TEMPLATE
- ›Complements the +sanitize-prompt command for inbound user input safety
modelarmor +sanitize-response
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Sanitize a model response through a Model Armor template
Usage
gws modelarmor +sanitize-response --template <NAME>
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--template |
✓ | — | Full template resource name (projects/PROJECT/locations/LOCATION/templates/TEMPLATE) |
--text |
— | — | Text content to sanitize |
--json |
— | — | Full JSON request body (overrides --text) |
Examples
gws modelarmor +sanitize-response --template projects/P/locations/L/templates/T --text 'model output'
model_cmd | gws modelarmor +sanitize-response --template ...
Tips
- Use for outbound safety (model -> user).
- For inbound safety (user -> model), use +sanitize-prompt.
See Also
- gws-shared — Global flags and auth
- gws-modelarmor — All filter user-generated content for safety commands
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★30 reviews- ★★★★★Zara Menon· Dec 28, 2024
gws-modelarmor-sanitize-response reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Chinedu Martin· Dec 24, 2024
Keeps context tight: gws-modelarmor-sanitize-response is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Dhruvi Jain· Dec 20, 2024
Solid pick for teams standardizing on skills: gws-modelarmor-sanitize-response is focused, and the summary matches what you get after install.
- ★★★★★James Mehta· Dec 16, 2024
gws-modelarmor-sanitize-response has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Chinedu Chawla· Nov 19, 2024
I recommend gws-modelarmor-sanitize-response for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Oshnikdeep· Nov 11, 2024
We added gws-modelarmor-sanitize-response from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Soo Yang· Nov 7, 2024
gws-modelarmor-sanitize-response fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Dev Liu· Oct 26, 2024
We added gws-modelarmor-sanitize-response from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Charlotte Park· Oct 10, 2024
Useful defaults in gws-modelarmor-sanitize-response — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Ganesh Mohane· Oct 2, 2024
gws-modelarmor-sanitize-response fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 30