Save document
save_documentSaves generated resume files (docx/PDF) into the Resumes folder by copying from a source path, with automatic backup before overwriting to prevent data loss.
Instructions
Save a generated document (docx or PDF) into the Resumes folder (created if missing).
PREFERRED: pass source_path — the full path to a file already written to disk (e.g. one the docx/pdf skill just generated). The server copies it; this is instant and cannot corrupt the file.
FALLBACK: content_base64, for SMALL files only (~15 KB decoded max). Base64 must be generated token-by-token, so a typical 50 KB resume takes minutes and may exceed the response limit outright — use source_path for anything binary or non-trivial.
Give exactly one of the two. Refuses to overwrite an existing file unless overwrite=true, in which case the old file is backed up first. Returns the saved path and size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | File name only (no folders), e.g. "Dale-Magrath-Resume-Acme-Corp.docx". | |
| overwrite | No | If false (default), refuse to replace an existing file. | |
| source_path | No | PREFERRED. Absolute path to an existing file to copy into the Resumes folder. Use this for any real document. | |
| content_base64 | No | Fallback for small files only (~15 KB decoded). Base64-encoded file bytes; a data: URL prefix is tolerated. Prefer source_path. |