Agent Skills
› googleworkspace/cli
› gws-modelarmor-sanitize-response
gws-modelarmor-sanitize-response
GitHub通过 Model Armor 模板对模型输出内容进行安全清洗,确保出站数据合规。适用于过滤有害内容、保护用户免受不良信息影响的安全处理场景。
Trigger Scenarios
需要对模型生成的文本进行安全过滤
执行出站内容合规性检查
Install
npx skills add googleworkspace/cli --skill gws-modelarmor-sanitize-response -g -y
SKILL.md
Frontmatter
{
"name": "gws-modelarmor-sanitize-response",
"metadata": {
"version": "0.22.5",
"openclaw": {
"cliHelp": "gws modelarmor +sanitize-response --help",
"category": "security",
"requires": {
"bins": [
"gws"
]
}
}
},
"description": "Google Model Armor: Sanitize a model response through a Model Armor template."
}
modelarmor +sanitize-response
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Sanitize a model response through a Model Armor template
Usage
gws modelarmor +sanitize-response --template <NAME>
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--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
- gws-shared — Global flags and auth
- gws-modelarmor — All filter user-generated content for safety commands
Version History
- a3768d0 Current 2026-08-20 07:24


