gws-modelarmor-sanitize-response
Original:🇺🇸 English
Translated
Google Model Armor: Sanitize a model response through a Model Armor template.
11.0kinstalls
Sourcegoogleworkspace/cli
Added on
NPX Install
npx skill4agent add googleworkspace/cli gws-modelarmor-sanitize-responseTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →modelarmor +sanitize-response
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
Sanitize a model response through a Model Armor template
Usage
bash
gws modelarmor +sanitize-response --template <NAME>Flags
| Flag | Required | Default | Description |
|---|---|---|---|
| ✓ | — | Full template resource name (projects/PROJECT/locations/LOCATION/templates/TEMPLATE) |
| — | — | Text content to sanitize |
| — | — | Full JSON request body (overrides --text) |
Examples
bash
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