Change a local ad
kleinanzeigen_update_adUpdates only the given fields of a local ad file; supplied images replace all images. For live ads, apply the change with the online update step afterward.
Instructions
Changes fields of a local ad file. Only the given fields change; images, when given, replace all images. For an ad that is already online, call kleinanzeigen_update_online_ads afterwards to apply the change on Kleinanzeigen.
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": {
"name": "<name>"
},
"name": "kleinanzeigen_update_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the ad folder in the workspace (see kleinanzeigen_list_local_ads). | |
| type | No | OFFER = Angebot (selling), WANTED = Gesuch. | |
| price | No | Whole euros. | |
| title | No | 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 | No | 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. | |
| description | No | 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. | |
| 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). |