js_get_script_source
Retrieve the full source code of a specified script, with automatic beautification and length control, for reverse engineering login encryption logic in CTF and web security.
Instructions
获取指定脚本的完整源码(自动美化格式化)
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": {
"scriptId": "<scriptId>"
},
"name": "js_get_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptId | Yes | 脚本ID(从js_get_all_scripts获取) | |
| beautify | No | 是否美化代码,默认true | |
| maxLength | No | 最大返回字符数,默认30000 |