script_test_run
Run JavaScript code with optional command-line input to test and validate reverse-engineered scripts.
Instructions
测试运行生成的脚本(仅支持JavaScript,Python需要本地python环境)
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>"
},
"name": "script_test_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 要测试的JavaScript代码 | |
| testInput | No | 测试输入(会作为命令行参数传入) |