update_cover_letter
Save edits onto an existing cover letter. Pass the version from the latest get_cover_letter, create_cover_letter, or duplicate_cover_letter response in this turn. On cover_letter_invalid, fix validation and retry with the same version. On cover_letter_conflict, call get_cover_letter again. The server owns id, source, createdAt, updatedAt, openedAt, jobTitle, and the tailoring object. To set the company the job is at, pass company and, when you know the company website, companyDomain; leave both out to keep the stored company. company or companyDomain inside the document body is ignored. A bad value returns invalid_input. recipient.company in the letter is separate and never sets the logo.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"coverLetterId": "<coverLetterId>",
"version": "<version>",
"coverLetter": "<coverLetter>"
},
"name": "update_cover_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | No | The company the job is at, at most 200 characters. An empty string removes the company and its domain. | |
| version | Yes | ||
| coverLetter | Yes | ||
| companyDomain | No | The company website as a bare hostname, such as lucid.co (no https://, path or port). Sets the logo. Needs company. | |
| coverLetterId | Yes |