Replace a person on a cover with a photo
replace_person_on_coverPut the person from a photo on a cover in place of one person (async, 1 credit for two versions, refunded only if both fail). Each version is a NEW cover. CONSENT ON EVERY CALL: set person_consent true only after the user confirms, for this photo, that they are the person or have the person's permission, and that the person is an adult. Ask each time; never set it on their behalf. BeYourCover records each confirmation. Stage the photo with upload_reference_image and pass its upload_id. The photo is checked before any charge: one adult, no public figure, content policy.
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": {
"cover_id": "<cover_id>",
"photo_upload_id": "<photo_upload_id>",
"person_consent": "<person_consent>"
},
"name": "replace_person_on_cover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional: which person on the cover to replace, e.g. "the woman on the left". Defaults to the main person. | |
| cover_id | Yes | The coverId to change (from a completed generation job or list_covers_for_book). | |
| person_consent | Yes | Must be true. The user confirms, for this call, that they are the person in the photo or have that person's permission, and that the person is an adult. | |
| idempotency_key | No | Optional key; a retry with the same key returns the same job. | |
| photo_upload_id | Yes | The upload_id of the person photo, from upload_reference_image. |