gws-modelarmor-sanitize-response

Sanitize model outputs using a Model Armor template.

8|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill gws-modelarmor-sanitize-response-niclasmartinsson-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor-sanitize-response
Source: https://github.com/niclasmartinsson-sys/google-workspace-cli/tree/main/skills/gws-modelarmor-sanitize-response
Command: npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill gws-modelarmor-sanitize-response-niclasmartinsson-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sanitize model outputs using a Model Armor template to enforce safety and policy alignment before delivery to users.

Core Features & Use Cases

  • Apply a Model Armor template to sanitize model responses.
  • Enforce consistent safety rules across model outputs in customer support, content generation, and internal tools.
  • Use Case: Before exposing model results to end-users, sanitize content to remove sensitive or disallowed information.

Quick Start

Run gws modelarmor +sanitize-response --template <NAME> to sanitize a model response.

Frequently Asked Questions about gws-modelarmor-sanitize-response

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sanitize LLM outputs before delivering them to users?

You sanitize LLM outputs by applying a Model Armor template to filter generated content, ensuring safety and policy alignment before the response reaches the end-user.

What is content filtering for model responses used for?

Content filtering for model responses is used to remove sensitive or disallowed information, enforcing consistent safety rules across customer support, content generation, and internal tools.

How do I apply a Model Armor template to sanitize a text payload?

To apply a Model Armor template, you run the sanitize-response command with the required template name and your optional text or JSON payload to produce a safe, sanitized output.

Can I use Model Armor sanitization for healthcare and finance prompts?

Yes, you can use Model Armor sanitization for healthcare, finance, and customer support prompts where AI-generated content must be filtered before user delivery.

Do I need a specific template name to filter sensitive model outputs?

Yes, you must provide a specific template name as a required input so the Model Armor can apply the corresponding safety rules and sanitize the model response correctly.