Test extracted crypto function
crypto_test_harnessRun a supplied function against deterministic string inputs in a bounded Worker and VM context to validate cryptographic logic. Includes configurable timeout for controlled execution.
Instructions
Run a supplied function against deterministic string inputs in a bounded Worker and vm context. This is defense in depth, not a security sandbox.
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": {
"code": "<code>",
"functionName": "<functionName>",
"testInputs": "<testInputs>"
},
"name": "crypto_test_harness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeoutMs | No | ||
| testInputs | Yes | ||
| functionName | Yes |