Prepare a new ad
kleinanzeigen_create_adCreates a new Kleinanzeigen ad in the local workspace, saving its YAML file and copying images so you can review it before publishing or saving it as a private draft.
Instructions
Creates a new ad in the local workspace (not online yet): writes ads//ad_.yaml and copies the images. Then call kleinanzeigen_publish_ads (public) or kleinanzeigen_save_drafts (private draft).
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": {
"title": "<title>",
"description": "<description>",
"category": "<category>"
},
"name": "kleinanzeigen_create_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Folder name for the ad; derived from the title when omitted. | |
| type | No | OFFER = Angebot (selling), WANTED = Gesuch. | OFFER |
| price | No | Whole euros. | |
| title | Yes | 10-65 characters. | |
| active | No | false keeps the ad local; publish skips it. | |
| images | No | Absolute paths of local JPG/PNG/WebP images (first = cover). They must lie inside KLEINANZEIGEN_UPLOAD_DIRS; they are copied into the workspace. | |
| contact | No | Overrides ad_defaults.contact from config.yaml. Postcode decides where the ad is shown. | |
| category | Yes | The most specific category: an id path like "210/217/herren" or "161/278", or a name like "Elektronik > Notebooks". Some categories need a last selection (e.g. Fahrräder: damen, herren, kinder, zubehoer, weiteres); the error then lists it. Use kleinanzeigen_get_category_fields to see the extra fields a category needs. | |
| price_type | No | FIXED = Festpreis, NEGOTIABLE = VB, GIVE_AWAY = Zu verschenken. | NEGOTIABLE |
| description | Yes | Plain text, up to 4000 characters. | |
| sell_directly | No | "Direkt kaufen"; needs shipping options and a price. | |
| shipping_type | No | PICKUP = Nur Abholung, SHIPPING = Versand möglich. | PICKUP |
| shipping_options | No | ||
| special_attributes | No | Category specific fields, e.g. {"condition_s": "like_new"}. | |
| republication_interval | No | Days until republishing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad | Yes | ||
| name | Yes | ||
| verify | Yes | Result of `kleinanzeigen-bot verify` for this ad (null when the bot is not installed). |