360 Secure SkillHub
360 安全技能中心

Gws Modelarmor

该 Skill 以 gws CLI 封装 Google Model Armor v1 接口,提供 sanitize-prompt、sanitize-response、create-template 等辅助命令,用于对用户提示和模型响应做安全净化。调用前需读取共享的 gws-shared 技能获取认证与全局参数,并可先用 gws schema 查看方法的参数与类型。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add gws-modelarmor
Metadata
name
gws-modelarmor
description
Google Model Armor: Filter user-generated content for safety.
metadata
{"version":"0.22.5","openclaw":{"category":"productivity","requires":{"bins":["gws"]},"cliHelp":"gws modelarmor --help"}}

modelarmor (v1)

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

gws modelarmor <resource> <method> [flags]

Helper Commands

Command Description
+sanitize-prompt Sanitize a user prompt through a Model Armor template
+sanitize-response Sanitize a model response through a Model Armor template
+create-template Create a new Model Armor template

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws modelarmor --help

# Inspect a method's required params, types, and defaults
gws schema modelarmor.<resource>.<method>

Use gws schema output to build your --params and --json flags.