save_script_source
Save JavaScript script source code to a local file for debugging and analysis of WeChat MiniApp code using Chrome DevTools Protocol.
Instructions
Saves the full source code of a JavaScript script to a local file.
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": {
"file_path": "<file_path>"
},
"name": "save_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| script_id | No | ||
| url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |