ruyi_save_script_source
Save the complete source code of a script from a specified URL to a local file, with JSON content saved as .json and other content as .js.
Instructions
保存脚本完整源码到本地文件。JSON 结果用 .json 扩展名,其他用 .js。
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": {
"url": "<url>",
"filePath": "<filePath>"
},
"name": "ruyi_save_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 脚本 URL | |
| pageIdx | No | ||
| filePath | Yes | 本地保存路径(绝对路径) |