read_resume
Extract LaTeX content from resume files to enable editing, compilation, and management within the LaTeX Resume MCP server.
Instructions
Read the contents of a LaTeX resume file.
Args:
filename: Name of the resume file (with or without .tex extension)
Returns the full LaTeX content of the resume.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes |
Implementation Reference
- src/latex_resume_mcp/server.py:246-267 (handler)The handler function for the 'read_resume' tool, decorated with @mcp.tool() which also serves as its registration in the FastMCP server. It reads the LaTeX content of the specified resume file, handling .tex extension automatically and returning errors as JSON if the file is not found or unreadable.@mcp.tool() def read_resume(filename: str) -> str: """ Read the contents of a LaTeX resume file. Args: filename: Name of the resume file (with or without .tex extension) Returns the full LaTeX content of the resume. """ ensure_dirs() filepath = get_resumes_dir() / ensure_tex_extension(filename) if not filepath.exists(): return json.dumps({"error": f"Resume '{filename}' not found"}) try: content = filepath.read_text(encoding="utf-8") return content except Exception as e: return json.dumps({"error": f"Error reading file: {str(e)}"})