export_resume_pdf
Export a Markdown resume to a styled PDF. Accepts file path or Markdown content, and optional custom CSS for personalization.
Instructions
Export a Markdown resume to PDF.
Resume Markdown format
The resume must use these conventions for the PDF to render correctly:
# Full Name— first h1 becomes the page title and name headerUnordered list immediately after h1 — becomes an inline contact bar (email, phone, URL, location)
Paragraph after the contact list — optional summary/objective
## Section Name— major section headings (Experience, Education, Skills, etc.)### <span>Job Title, Company</span> <span>Start – End</span>— entry headings; the two<span>tags are required so the title and dates are laid out left/right via flexboxBullet lists under an entry — achievements and details
When to use file_path vs markdown_content
If the user's Markdown file already follows the format above → pass
file_pathdirectly.If the file doesn't follow the format (missing
<span>tags, wrong structure, etc.) → read the file, rewrite it to match the format, and pass the result asmarkdown_content.If you are generating a resume from scratch → write the Markdown and pass as
markdown_content.If you need a full example of the correct format → read the
resume://templateresource first.
CSS / styling
By default the built-in stylesheet is applied automatically — no CSS parameter needed. If the user wants to customise the style:
Recommended for iterative editing: read
resume://style, modify it, save to a local file (e.g.~/resume.css), then passcss_pathpointing to that file. This way the user can tweak the CSS manually between exports without re-sending it, and future exports just reference the same path with no extra tokens.Pass
css_contentwith the raw CSS text — convenient for one-off changes. To see the default stylesheet, read theresume://styleresource.
Parameters
markdown_content: Raw Markdown text of the resume (mutually exclusive with file_path)
file_path: Path to a .md file (mutually exclusive with markdown_content)
css_content: Custom CSS text (mutually exclusive with css_path; optional)
css_path: Path to a custom CSS file (mutually exclusive with css_content; optional)
output_path: Where to write the PDF (default: ~/resume.pdf)
Returns
JSON string: {"pdf_path": "/absolute/path/to/resume.pdf", "success": true}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown_content | No | ||
| file_path | No | ||
| css_content | No | ||
| css_path | No | ||
| output_path | No | ~/resume.pdf |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |