gws-modelarmor-sanitize-prompt

Sanitize user prompts through Google Model Armor safety templates. Requires a Model Armor template resource name and accepts text input via flag, stdin, or full JSON request body Designed for inbound prompt safety; use the companion +sanitize-response command for outbound response filtering Integrates with Google Cloud authentication and global flags defined in gws-shared

INSTALLATION
npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-sanitize-prompt
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$2a

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

  • gws-modelarmor — All filter user-generated content for safety commands
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card