Labsco
googleworkspace logo

gws-modelarmor-sanitize-response

โœ“ Officialโ˜… 29,425

by Google ยท part of googleworkspace/cli

Google Model Armor: Sanitize a model response through a Model Armor template.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup
๐Ÿงฐ Not standalone. This skill ships with googleworkspace/cli and only works together with that tool โ€” install the tool first, then add this skill.

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.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Sanitize a model response through a Model Armor template

Flags

FlagRequiredDefaultDescription
--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