Check targets (deprecated)
guard_checkChecks a risky shell command’s targets (kube/AWS/git/Terraform/Ansible) against workspace-listed targets to flag unlisted ones. Read-only; reports unresolved target kinds.
Instructions
Deprecated: the client decides locally now; use warnings. Checks a risky shell command's targets (kube context, AWS profile, git remotes, Terraform root, Ansible inventory) against this workspace's listed targets. Read-only. unresolved lists target kinds that could not be determined (command when the line did not parse); an empty unlisted then does not mean all clear.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>",
"cwd": "<cwd>"
},
"name": "guard_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Working directory the command runs in. | |
| command | Yes | The full shell command line. | |
| aws_profile | No | Current AWS profile, if any. | |
| git_remotes | No | Git remotes of cwd, name to URL. | |
| kube_context | No | Current kubectl context, if any. | |
| ansible_inventory | No | Inventory ansible-playbook uses without -i (comma-separated, as in ANSIBLE_INVENTORY). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||