
gws-modelarmor-sanitize-response
โ Officialโ 29,425by Google ยท part of googleworkspace/cli
Google Model Armor: Sanitize a model response through a Model Armor template.
This is the playbook your agent receives when the skill activates โ you don't need to read it to use the skill, but it's here to audit before installing.
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
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
npx skills add googleworkspace/cli --skill "gws-modelarmor-sanitize-response" --full-depthRun this in your project โ your agent picks the skill up automatically.
Usage
gws modelarmor +sanitize-response --template <NAME>No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under Apache-2.0โ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ