360 Secure SkillHub
360 安全技能中心

Gws Modelarmor Sanitize Prompt

该 Skill 通过 gws modelarmor +sanitize-prompt 命令,在指定 Model Armor 模板下清洗用户提示词:可传入 --text 或完整 --json 请求体,均未提供时从标准输入读取;需先按 gws-shared 配置认证与全局参数。

googleworkspace-bot
googleworkspace-bot
热度 74.20
最近更新 2026-05-11 17:29:02
分类:安全依赖:代码执行 / 第三方 API应用场景:API 集成 / 工作流

安装技能

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

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

modelarmor +sanitize-prompt

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Sanitize a user prompt through a Model Armor template

Usage

gws modelarmor +sanitize-prompt --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-prompt --template projects/P/locations/L/templates/T --text 'user input'
echo 'prompt' | gws modelarmor +sanitize-prompt --template ...

Tips

  • If neither --text nor --json is given, reads from stdin.
  • For outbound safety, use +sanitize-response instead.

See Also