version
Retrieve version details for the Delve debugger to verify installation and compatibility when debugging Go programs.
Instructions
Get Delve version information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/config.ts:50-58 (handler)The handler logic for the 'version' tool: executes 'dlv version' command and returns its stdout as text content.case "version": { const { stdout } = await exec("dlv version"); return { content: [{ type: "text", text: stdout }] }; }
- src/server.ts:351-357 (schema)Input schema definition for the 'version' tool (empty object, no parameters required).name: "version", description: "Get Delve version information", inputSchema: { type: "object", properties: {} } },
- src/server.ts:415-418 (registration)Dispatches calls to the 'version' tool (and other config tools) to the handleConfigCommands function.// Configuration commands if (["setBackend", "configureLogging", "version"].includes(name)) { return handleConfigCommands(name, args); }
- src/server.ts:351-357 (registration)Registers the 'version' tool in the ListTools response, including name, description, and schema.name: "version", description: "Get Delve version information", inputSchema: { type: "object", properties: {} } },