Stage PDF for Upload
prepare_application_pdf_uploadStages a disposable copy of an application's rendered PDF, rendering it first if needed, and returns an absolute upload path for Playwright's file chooser.
Instructions
Stage a disposable copy of an application's canonical rendered PDF for direct Playwright upload: its tailored resume by default, or its cover letter (document). If the PDF has not been rendered, render it and retry once. Writes atomically under $MAESTRO_CS_UPLOAD_DIR/<application_id>/, defaulting to the repository's .playwright-mcp/uploads directory (pair Playwright --output-dir with the parent .playwright-mcp tree). Returns upload_path, an absolute path usable directly by Playwright's file chooser. The staged copy is the only location intended for browser file uploads; the canonical server artifact (under applications/artifact_dir) is preserved and is not an upload source. Also returns filename/path integrity and PDF lint metadata. This preparation tool does not authorize or submit an application.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | "resume" (default): the tailored resume's PDF. "cover_letter": the PDF of the cover letter stored for the application (store_cover_letter or generate_cover_letter), rendered first when it has none, staged in the same folder under its own file name, so the two copies sit side by side. With no cover letter stored the call is refused and nothing is staged. | resume |
| application_id | Yes |