$npx -y skills add googleworkspace/cli --skill gws-modelarmorGoogle Model Armor: Filter user-generated content for safety.
| 1 | # modelarmor (v1) |
| 2 | |
| 3 | > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. |
| 4 | |
| 5 | ```bash |
| 6 | gws modelarmor <resource> <method> [flags] |
| 7 | ``` |
| 8 | |
| 9 | ## Helper Commands |
| 10 | |
| 11 | | Command | Description | |
| 12 | |---------|-------------| |
| 13 | | [`+sanitize-prompt`](../gws-modelarmor-sanitize-prompt/SKILL.md) | Sanitize a user prompt through a Model Armor template | |
| 14 | | [`+sanitize-response`](../gws-modelarmor-sanitize-response/SKILL.md) | Sanitize a model response through a Model Armor template | |
| 15 | | [`+create-template`](../gws-modelarmor-create-template/SKILL.md) | Create a new Model Armor template | |
| 16 | |
| 17 | ## Discovering Commands |
| 18 | |
| 19 | Before calling any API method, inspect it: |
| 20 | |
| 21 | ```bash |
| 22 | # Browse resources and methods |
| 23 | gws modelarmor --help |
| 24 | |
| 25 | # Inspect a method's required params, types, and defaults |
| 26 | gws schema modelarmor.<resource>.<method> |
| 27 | ``` |
| 28 | |
| 29 | Use `gws schema` output to build your `--params` and `--json` flags. |