gws-modelarmor-sanitize-response
Agent skill fromgoogleworkspace/cli
Google Model Armor: Sanitize a model response through a Model Armor template.
How to install gws-modelarmor-sanitize-response
install gws-modelarmor-sanitize-response
# install the cli pack with the skills CLI
npx skills add googleworkspace/cli# or add only this skill to Claude Code: copy the folder
skills/gws-modelarmor-sanitize-response/
# into
~/.claude/skills/gws-modelarmor-sanitize-response/ (all projects)
.claude/skills/gws-modelarmor-sanitize-response/ (one project)
1# modelarmor +sanitize-response23> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.45Sanitize a model response through a Model Armor template67## Usage89```bash10gws modelarmor +sanitize-response --template <NAME>11```1213## Flags1415| Flag | Required | Default | Description |16|------|----------|---------|-------------|17| `--template` | ✓ | — | Full template resource name (projects/PROJECT/locations/LOCATION/templates/TEMPLATE) |18| `--text` | — | — | Text content to sanitize |19| `--json` | — | — | Full JSON request body (overrides --text) |2021## Examples2223```bash24gws modelarmor +sanitize-response --template projects/P/locations/L/templates/T --text 'model output'25model_cmd | gws modelarmor +sanitize-response --template ...26```2728## Tips2930- Use for outbound safety (model -> user).31- For inbound safety (user -> model), use +sanitize-prompt.3233## See Also3435- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth36- [gws-modelarmor](../gws-modelarmor/SKILL.md) — All filter user-generated content for safety commands
Excerpt shown under the repository's Apache-2.0 license.
