gws-modelarmor-sanitize-response

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

INSTALLATION
npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-sanitize-response
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$2a

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-modelarmor — All filter user-generated content for safety commands
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card