Lightlines
By googleworkspace

gws-modelarmor-sanitize-response

googleworkspace28.4k installs

Screen model replies with Google Model Armor.

What it does

Sanitizes model responses using a Google Model Armor template before they reach the user.

When to use it

Use for outbound safety when passing a model response to the user.

How to use it

Give it a template resource name and model response, supplied as text, JSON, or piped input; it returns the sanitization result.

What you provide

  • a full template resource name

Uses

Good to know

  • edits its own instructions

Latest review

What you need · 2

Requires the gws CLI to run the Model Armor response-sanitization command.

Requires reading gws-shared for authentication, global flags, and security rules; instructs generating it if missing.


Access · 2

This skill

Google Model Armor

Write

Sends model replies for screening

../gws-shared/SKILL.md

Write

Creates missing shared skill instructions