Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Sanitize AI model responses through a Google Model Armor template for outbound content safety filtering.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: gws-modelarmor-sanitize-response3description: "Google Model Armor: Sanitize a model response through a Model Armor template."4metadata:5version: 0.22.56openclaw:7category: "security"8requires:9bins:10- gws11cliHelp: "gws modelarmor +sanitize-response --help"12---1314# modelarmor +sanitize-response1516> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.1718Sanitize a model response through a Model Armor template1920## Usage2122```bash23gws modelarmor +sanitize-response --template <NAME>24```2526## Flags2728| Flag | Required | Default | Description |29|------|----------|---------|-------------|30| `--template` | ✓ | — | Full template resource name (projects/PROJECT/locations/LOCATION/templates/TEMPLATE) |31| `--text` | — | — | Text content to sanitize |32| `--json` | — | — | Full JSON request body (overrides --text) |3334## Examples3536```bash37gws modelarmor +sanitize-response --template projects/P/locations/L/templates/T --text 'model output'38model_cmd | gws modelarmor +sanitize-response --template ...39```4041## Tips4243- Use for outbound safety (model -> user).44- For inbound safety (user -> model), use +sanitize-prompt.4546## See Also4748- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth49- [gws-modelarmor](../gws-modelarmor/SKILL.md) — All filter user-generated content for safety commands50