resume-render
Convert JSON Resume format to PDF with customizable themes for professional document generation.
Instructions
Render a resume to PDF. Returns a URL to download the generated PDF.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resume | Yes | Resume object in JSON Resume format | |
| theme | No | Theme name (e.g. Even, StackOverflow, Class, Professional) | |
| format | No | Output format |
Implementation Reference
- src/tools/resume.ts:31-43 (handler)The handler function for the resume-render tool, which calls the client.resume.render method.
async (params) => { try { const result = await client.resume.render({ resume: params.resume, theme: params.theme, format: params.format, }); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } }, - src/tools/resume.ts:26-30 (schema)Schema definition for the resume-render tool inputs using Zod.
{ resume: z.record(z.unknown()).describe("Resume object in JSON Resume format"), theme: z.string().optional().describe("Theme name (e.g. Even, StackOverflow, Class, Professional)"), format: z.string().optional().describe("Output format"), }, - src/tools/resume.ts:23-44 (registration)Registration of the resume-render tool within the MCP server.
server.tool( "resume-render", "Render a resume to PDF. Returns a URL to download the generated PDF.", { resume: z.record(z.unknown()).describe("Resume object in JSON Resume format"), theme: z.string().optional().describe("Theme name (e.g. Even, StackOverflow, Class, Professional)"), format: z.string().optional().describe("Output format"), }, async (params) => { try { const result = await client.resume.render({ resume: params.resume, theme: params.theme, format: params.format, }); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } }, );