purchase_tile
Buy a city tile with gold using the city ID and tile coordinates; check purchasable tiles first to compare costs and options.
Instructions
Buy a tile for a city with gold.
Args:
city_id: City ID
x: Tile X coordinate (target_x also accepted — unit_action 系工具用
target_x/target_y,这里收编别名免得同族参数名不一致再咬人)
y: Tile Y coordinate (target_y also accepted)
Use get_purchasable_tiles first to see costs and options.
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": {
"city_id": "<city_id>"
},
"name": "purchase_tile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| city_id | Yes | ||
| target_x | No | ||
| target_y | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |