Refine a search
refine_searchRefine a previous CielStay search in natural language, such as "more rustic", "closer to the park", "better views", "bigger place" or "with ping pong". For any follow-up that adds to or changes an earlier search in the conversation; keeps that search's place and dates. Takes the original query plus the refinement, and the earlier currentIntent as previousIntent; no session or token is needed.
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": {
"query": "<query>",
"refinement": "<refinement>"
},
"name": "refine_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The original search query you want to refine, exactly as you sent it before. | |
| persona | No | Carry the same persona through from the original search, if you sent one. | |
| traveller | No | The traveller fields from the original search, with anything the traveller has added since. Used for ranking and never stored. | |
| refinement | Yes | Natural language refinement instruction. Examples: "more rustic and less modern", "closer to the water", "something with better views", "bigger — needs 3+ bedrooms". | |
| previousIntent | No | The `currentIntent` object from the previous response, if you still have it. Preserves location and dates across the refinement. Optional — omit it and the refinement still works. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notice | No | ||
| hasMore | No | ||
| results | Yes | ||
| rankedFor | No | What these results were ranked for: place, guests, dates, amenities, traveller | |
| totalFound | No | ||
| currentIntent | No | Pass to refine_search as previousIntent to keep place and dates | |
| rankingQuestion | No | Present when nothing is known about the traveller: the question whose answer would most change this ranking. An answer can be sent as `traveller` |