core
Analyze Go program core dumps to identify crashes and errors by examining executable and dump files.
Instructions
Examine a core dump
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| executable | Yes | Path to the executable that produced the core dump | |
| corePath | Yes | Path to the core dump file |
Implementation Reference
- src/handlers/debug.ts:67-76 (handler)The core tool handler implementation within handleDebugCommands switch statement. It destructures args for executable and corePath, starts a debug session for core dump analysis, and returns a success message with session ID.case "core": { const { executable, corePath } = args; const session = await startDebugSession("core", executable, [corePath]); return { content: [{ type: "text", text: `Started core dump analysis session ${session.id} for ${executable} with core ${corePath}` }] }; }
- src/server.ts:406-407 (registration)Registration dispatch in CallToolRequestSchema handler: checks if tool name is 'core' and delegates to handleDebugCommands.if (["debug", "attach", "exec", "test", "core", "dap", "replay", "trace"].includes(name)) { return handleDebugCommands(name, args);
- src/server.ts:270-287 (registration)Tool registration in ListToolsRequestSchema response: defines 'core' tool name, description, and input schema requiring executable and corePath.{ name: "core", description: "Examine a core dump", inputSchema: { type: "object", properties: { executable: { type: "string", description: "Path to the executable that produced the core dump" }, corePath: { type: "string", description: "Path to the core dump file" } }, required: ["executable", "corePath"] } },
- src/server.ts:273-287 (schema)Input schema definition for the 'core' tool, specifying properties and requirements.inputSchema: { type: "object", properties: { executable: { type: "string", description: "Path to the executable that produced the core dump" }, corePath: { type: "string", description: "Path to the core dump file" } }, required: ["executable", "corePath"] } },