360 Secure SkillHub
360 安全技能中心

Gws Modelarmor Sanitize Response

该 Skill 提供 gws modelarmor +sanitize-response 命令,用指定 Model Armor 模板对模型输出做出站安全清理。需先阅读 gws-shared 获取认证与全局参数,可用 --text 或 --json 传入待清理内容。

googleworkspace-bot
googleworkspace-bot
热度 74.43
最近更新 2026-05-11 17:29:02
分类:安全依赖:代码执行 / 第三方 API应用场景:数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gws-modelarmor-sanitize-response
Metadata
name
gws-modelarmor-sanitize-response
description
Google Model Armor: Sanitize a model response through a Model Armor template.
metadata
{"version":"0.22.5","openclaw":{"category":"security","requires":{"bins":["gws"]},"cliHelp":"gws modelarmor +sanitize-response --help"}}

modelarmor +sanitize-response

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to 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