Generate a non-destructive validation test
safe_validation_generateGenerates non-destructive validation tests for a vulnerability class and writes a workspace regression test that exercises local functions with boundary or malformed inputs to assert defensive behavior.
Instructions
Generate a NON-destructive validation/regression test for a vulnerability CLASS (e.g. buffer-overflow, command-injection, auth-bypass) in python/c/typescript/bash, and write it into the workspace. The test exercises a LOCAL function with boundary/malformed inputs and asserts defensive behaviour. It never produces a weaponised exploit or a network launcher.
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": {
"outputPath": "<outputPath>",
"vulnClass": "<vulnClass>",
"targetDescription": "<targetDescription>"
},
"name": "safe_validation_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Defaults to the outputPath extension. | |
| vulnClass | Yes | Vulnerability class, e.g. "buffer-overflow", "command-injection", "auth-bypass". | |
| outputPath | Yes | Workspace-relative path to write the test to. | |
| targetDescription | Yes | Human description of the local function/component under test. |