Store Cover Letter
store_cover_letterStores a user-written cover letter for a job application and renders its PDF, replacing the application's existing letter and PDF without an LLM call.
Instructions
Store a cover letter the caller wrote for an application and render its PDF, with no LLM call (generate_cover_letter has the app's configured model write it). It replaces the application's cover letter and that letter's PDF (an application holds one); the new one shows on the job's Apply step and in list_qa_entries. The text is stored as the user's own letter; the server does not verify its facts. As with a generated letter, en and em dashes become a hyphen in a range ("2020-2023") and a comma elsewhere, and one opening a line ("— Jane") is dropped; the rest is stored as written, line breaks and paragraphs included, up to 20000 characters. The PDF puts the base resume's contact block above the letter, in the engine of the application's resume template.
Returns the stored entry {id, application_id, kind, answer, model_used,
pdf_path, render_note, render_error, created_at}; model_used names the
agent. render_error non-null means the letter is stored and its PDF could
not be made (pdf_path is null). render_note is non-null only when a TeX-less
backend rendered a LaTeX template through a Typst one.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| application_id | Yes |