get_script_source
Retrieve JavaScript script source code by URL or ID, supporting line ranges for normal files or character offsets for minified single-line files to analyze WeChat MiniApp code.
Instructions
Gets a snippet of a JavaScript script source by URL (recommended) or script ID. Supports line range (for normal files) or character offset (for minified single-line files).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | No | ||
| url | No | ||
| start_line | No | ||
| end_line | No | ||
| offset | No | ||
| length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |