Prepare a Leboncoin listing
prepare_listingTurns photo observations and item facts into a local ad draft with comparable pricing, category, title, and description—nothing published. Works offline with research set to false.
Instructions
The main entry point. Give it what you can actually SEE in the photos plus the photo paths, and it creates a local draft: searches comparable ads, computes a price from their asking prices, resolves the category, and writes a title and description from the facts you supplied. Nothing is sent to Leboncoin and nothing is published. The draft lives on this machine. Show the result to the user, apply their corrections with update_listing_draft, then validate_listing. Set research: false to build the draft without touching the network at all - useful when Leboncoin is blocking and you still want a draft the user can copy in by hand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Size or dimensions as printed or measured. | |
| brand | No | Brand exactly as it appears on the item. Leave empty if you cannot read it - do not guess. | |
| color | No | Main colour, in French where possible. | |
| model | No | Model or product name, e.g. "Exos X18", "iPhone 13". | |
| notes | No | Anything else worth telling a buyer, e.g. "facture et boîte d'origine". | |
| price | No | Set the price yourself and skip the estimate. | |
| title | No | Override the generated title. Leboncoin caps titles at 50 characters. | |
| photos | No | Photos to attach. They are COPIED into the draft; your originals are never moved or modified. | |
| country | No | Leboncoin site to use (fr). Defaults to the server's configured site. | |
| defects | No | Every visible flaw: scratches, dents, missing parts. These are always kept in the description. | |
| queries | No | Extra search phrasings for the comparable hunt. | |
| working | No | Whether the item is known to work. Omit if you do not know - do not assume. | |
| capacity | No | Storage, volume or power, e.g. "8 To", "128 Go", "1500 W". | |
| category | No | Free-text category guess in French, e.g. "disque dur", "canapé". | |
| currency | No | ||
| location | No | Where the item is. Leboncoin requires this before publishing. | |
| material | No | Material, e.g. "chêne massif", "cuir". | |
| research | No | Set false to create the draft offline. Default true. | |
| shipping | No | Whether you offer delivery, and how. | |
| condition | No | Condition. Pick the one the photos actually support, not the flattering one. | |
| reference | No | Reference / SKU / part number if visible on a label or the item. | |
| categoryId | No | Numeric category id from find_category. Must be a leaf category. | |
| description | No | Override the generated description. |