get_script_source
Retrieve JavaScript or TypeScript source code from debugging sessions, using source maps to access original code when available.
Instructions
Retrieves the source code for a script. If source maps are available, can return the original source instead of the generated/bundled code.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ID of the debugging session. | |
| script_id | Yes | ID of the script. Obtain from list_scripts or get_call_stack. | |
| prefer_original | No | If true and a source map exists, return the original source (e.g., TypeScript). Defaults to true. |