Labsco
googleworkspace logo

gws-modelarmor-create-template

โœ“ Officialโ˜… 29,425

by Google ยท part of googleworkspace/cli

Google Model Armor: Create a new Model Armor template.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup
๐Ÿงฐ Not standalone. This skill ships with googleworkspace/cli and only works together with that tool โ€” install the tool first, then add this skill.

This is the playbook your agent receives when the skill activates โ€” you don't need to read it to use the skill, but it's here to audit before installing.

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

Flags

FlagRequiredDefaultDescription
--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