compile_and_preview
Compile a LaTeX resume to PDF and return a preview image. Use an existing .tex file or generate from resume data with a chosen template.
Instructions
Compile a LaTeX resume to PDF and return a preview image.
If tex_path is provided, compiles that file directly. Otherwise generates from resume data using the specified template, then compiles.
Args: tex_path: Path to existing .tex file. If None, generates from data first. output_filename: Base filename for output files (used when generating). template_name: Template style when generating ('modern', 'classic', 'minimal'). dpi: Resolution for preview image (default 200).
Returns: Image of the rendered resume, or error JSON string.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compile_and_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tex_path | No | ||
| output_filename | No | resume | |
| template_name | No | modern | |
| dpi | No |