Skip to main content
Glama
workbackai
by workbackai

step_out

Exits the current function during NodeJS debugging, allowing users to continue execution and inspect variables at the caller level.

Instructions

Steps out of current function

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'step_out' tool. It ensures the debugger is enabled and paused, then sends the 'Debugger.stepOut' command to step out of the current function, returning appropriate success or error messages.
    async () => { try { // Ensure debugger is enabled if (!inspector.debuggerEnabled) { await inspector.enableDebugger(); } if (!inspector.paused) { return { content: [{ type: "text", text: "Debugger is not paused at a breakpoint" }] }; } await inspector.send('Debugger.stepOut', {}); return { content: [{ type: "text", text: "Stepped out of current function" }] }; } catch (err) { return { content: [{ type: "text", text: `Error stepping out: ${err.message}` }] }; } }
  • The registration of the 'step_out' tool on the MCP server using server.tool(), including the name, description, empty schema (no parameters), and the handler function.
    server.tool( "step_out", "Steps out of current function", {}, async () => { try { // Ensure debugger is enabled if (!inspector.debuggerEnabled) { await inspector.enableDebugger(); } if (!inspector.paused) { return { content: [{ type: "text", text: "Debugger is not paused at a breakpoint" }] }; } await inspector.send('Debugger.stepOut', {}); return { content: [{ type: "text", text: "Stepped out of current function" }] }; } catch (err) { return { content: [{ type: "text", text: `Error stepping out: ${err.message}` }] }; } } );
  • The input schema for the 'step_out' tool, which is empty as it requires no parameters.
    {},

Other Tools

Related Tools

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/workbackai/mcp-nodejs-debugger'

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