Skip to main content
Glama

set_variable_value

Modify variable values during JavaScript debugging to test scenarios or fix issues in paused sessions.

Instructions

Modifies the value of a variable in a specific call frame. Use this to test different scenarios or fix values during debugging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesID of the debugging session. The session must be paused.
call_frame_idYesID of the call frame containing the variable. Obtain from get_call_stack.
scope_indexYesIndex of the scope containing the variable. 0 is the local scope.
variable_nameYesName of the variable to modify.
new_valueYesJavaScript expression that evaluates to the new value. Examples: "42", "'new string'", "{a: 1, b: 2}", "null"

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