Validate a draft against the real Leboncoin form
validate_listingFills Leboncoin's deposit form from a draft, uploads photos, and reports if the ad would publish—without publishing.
Instructions
Opens Leboncoin's deposit form in the browser, fills it completely from the draft, uploads the photos, and reports whether it would publish. It cannot publish. Not "it does not" - the module that fills the form has no access to the code that clicks publish, so no failure mode here can result in a public ad. This is the safe end-to-end check: run it before asking the user for permission to publish, and read them what came back. readyToPublish is true only when nothing is missing, no field was rejected, the form shows no errors, EVERY photo finished uploading, and Leboncoin has the publish button enabled. If uploadedPhotos is lower than expectedPhotos, do not treat it as a detail - the ad would go live with photos missing, and publishing is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | ||
| screenshot | No | Save a screenshot of the filled form into the draft directory. |