save_resume_version
Append a new resume version to the store for tracking tailored resumes; never mutates or deletes existing versions.
Instructions
Append a new resume version to the store. Never mutates or deletes.
The store enforces a single-root tree: the first saved version's
parent_id MUST be None; every subsequent version's parent_id MUST
reference an existing version id. job_id, when given, MUST reference
an existing job — call save_job_analysis first and pass the id it
returns (the FK is real now, D1/D8). Content is stored raw and verbatim.
This tool NEVER raises.
Args: content: Raw resume text, stored verbatim. label: Caller-supplied human-readable label. parent_id: id of the version this one derives from. None only on the very first save (establishes the base). job_id: Optional job id this version was tailored for.
Returns: SaveResumeVersionResult with success=True, id, label, parent_id, job_id on success; success=False with error/message on failure ("invalid_parent", "parent_not_found", "job_not_found", "invalid_input", "corrupt", "write_error").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| job_id | No | ||
| content | Yes | ||
| parent_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| error | No | ||
| label | No | ||
| job_id | No | ||
| message | No | ||
| success | Yes | ||
| parent_id | No |