Saved watches
dv_watchSave a Divar search as a local watch and check it on demand to get only ads posted since the last check, without any push or notifications.
Instructions
Save a search and later get only the ads that appeared since the last check; stored in a local file, nothing is pushed.
create takes the search arguments of dv_search (validated once, then stored with the current time as the mark).
check runs dv_new_since for the watch and moves the mark to the newest ad it returned, so the next check shows only
newer ads; it does not run by itself: call it from a schedule or when asked. The file is ~/.divar-mcp/state.json
(override with DIVAR_MCP_STATE); it holds only your searches. Next: dv_post for a new ad.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'. | تهران |
| name | No | create: a label for you, e.g. 'cheap Pride in Karaj'. | |
| limit | No | check: max new ads per watch. | |
| query | No | Free text in title or description, e.g. 'پراید 111'. | |
| action | Yes | 'create' saves a search, 'check' returns the ads newer than the last check and moves the mark, 'list' shows the saved searches, 'delete' removes one. | |
| exclude | No | Drop ads whose title has any of these words. | |
| filters | No | Other category filters (keys from dv_filters): {'size': {'min': 80, 'max': 120}, 'rooms': ['دو'], 'parking': true}. Unknown keys are returned in `ignored`. | |
| category | No | Category slug or Persian name, e.g. 'light' (cars), 'apartment-sell', 'apartment-rent', 'mobile-phones'. | |
| keywords | No | Words that must all be in the title. | |
| watch_id | No | check / delete: the id from 'create' or 'list'. check without it checks every watch. | |
| districts | No | Neighbourhood names or ids in the one city, e.g. ['ونک']. | |
| max_price | No | Toman; monthly rent in rent categories. | |
| min_price | No | Toman; monthly rent in rent categories. | |
| brand_model | No | Vehicles, phones: brand/model, e.g. ['پژو 206']. |