Filter options
dv_filter_optionsLook up valid Divar filter options—brand/model keys, districts, or option lists—and translate Persian filter text into the keys needed for ad search.
Instructions
Allowed values of a filter: brand and model keys (161 car brands), districts, or any option list.
query turns 'پراید' into the key 'Pride 111'; without it: all brands, or the models of one brand. Pass the
keys to dv_search as brand_model / filters.
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": {
"category": "<category>"
},
"name": "dv_filter_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | تهران | |
| brand | No | brand_model: a brand key, e.g. 'Peugeot', to list its models. | |
| limit | No | ||
| query | No | Text to look up in the filter, e.g. 'سمند'. | |
| filter | No | Filter key from dv_filters, usually 'brand_model' or 'districts'. | brand_model |
| category | Yes |