360 Secure SkillHub
360 安全技能中心

Gws Modelarmor Create Template

核心功能是创建Google Model Armor安全防护模板,用于后续净化AI提示词、响应内容。典型场景为构建AI内容安全防护规则。输入需提供GCP项目ID、区域、模板ID,可选指定jailbreak预设或自定义JSON配置,无指定时默认用jailbreak预设。输出为可用安全模板,因是写入操作,执行前需确认用户同意,依赖gws工具运行。

googleworkspace-bot
googleworkspace-bot
热度 74.76
最近更新 2026-05-11 17:29:02
分类:安全依赖:第三方 API应用场景:模板

安装技能

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

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

modelarmor +create-template

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

Create a new Model Armor template

Usage

gws modelarmor +create-template --project <PROJECT> --location <LOCATION> --template-id <ID>

Flags

Flag Required Default Description
--project ✓ — GCP project ID
--location ✓ — GCP location (e.g. us-central1)
--template-id ✓ — Template ID to create
--preset — — Use a preset template: jailbreak
--json — — JSON body for the template configuration (overrides --preset)

Examples

gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --preset jailbreak
gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --json '{...}'

Tips

  • Defaults to the jailbreak preset if neither --preset nor --json is given.
  • Use the resulting template name with +sanitize-prompt and +sanitize-response.

[!CAUTION] This is a write command — confirm with the user before executing.

See Also