Skip to main content
Glama

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
NameRequiredDescriptionDefault
session_idYesID of the debugging session.
script_idYesID of the script. Obtain from list_scripts or get_call_stack.
prefer_originalNoIf true and a source map exists, return the original source (e.g., TypeScript). Defaults to true.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/johngrimes/mcp-js-debugger'

If you have feedback or need assistance with the MCP directory API, please join our Discord server