Skip to main content
Glama

next

Step to the next line in a Go program debug session using the Delve debugger. Provide the session ID to continue debugging and analyze code progression effectively.

Instructions

Step over to next line

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesID of the debug session

Implementation Reference

  • The core implementation of the "next" MCP tool handler. It sends a "next" command to the active Delve debug session and returns a confirmation message.
    case "next": { await sendDelveCommand(session, "Command", { name: "next" }); return { content: [{ type: "text", text: "Stepped to next line" }] }; }
  • Input schema definition for the "next" tool, requiring a sessionId.
    inputSchema: { type: "object", properties: { sessionId: { type: "string", description: "ID of the debug session" } }, required: ["sessionId"] }
  • src/server.ts:195-208 (registration)
    Registration of the "next" tool in the ListToolsRequestSchema response, including name, description, and schema.
    { name: "next", description: "Step over to next line", inputSchema: { type: "object", properties: { sessionId: { type: "string", description: "ID of the debug session" } }, required: ["sessionId"] } },
  • src/server.ts:410-413 (registration)
    Dispatch/registration logic in CallToolRequestSchema handler that routes the "next" tool call to handleControlCommands.
    // Control commands if (["setBreakpoint", "removeBreakpoint", "continue", "next", "step", "stepout", "variables", "evaluate"].includes(name)) { return handleControlCommands(name, args); }

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/dwisiswant0/delve-mcp'

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