get_script_source
Retrieve source code of a script from an Electron app's asar bundle, specified by its script ID, for static analysis.
Instructions
Get the source code of a script by scriptId (from list_scripts). Useful for static analysis of app.asar bundles.
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": {
"sessionId": "<sessionId>",
"scriptId": "<scriptId>"
},
"name": "get_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Page id from list_pages, or "main" (default) for the main process. | |
| scriptId | Yes | Script id from list_scripts. | |
| maxLength | No | Maximum characters to return (default 200000). | |
| sessionId | Yes | Session id returned by launch_app. |