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:247-267 (handler)The handler function decorated with @mcp.tool() that reads and returns the contents of a LaTeX resume file specified by filename.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)}"})