畫地圖
show_map把一條資料(或「需要度」)畫成里 / 鄉鎮的五級地圖,在對話裡直接顯示,可拖曳縮放、滑過看數字;換算同「排名」。畫不出來的 AI 會拿到一個能點開的網址(請轉給使用者)。Draw an indicator as an interactive choropleth map of neighbourhoods; chats that cannot render it get a link that opens the map in a browser (pass it on to the user).
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": {
"metric": "<metric>"
},
"name": "show_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| per | No | 換算:不除(預設)/ 每千居民 / 每公里道路 / 路 + 人 + 店 / 分母的資料代號 | |
| town | No | 地圖先對準這個鄉鎮(其他鄉鎮照樣畫) | |
| unit | No | 單位:里(預設,neighbourhood)或 鄉鎮(district) | |
| metric | Yes | 資料代號、名稱,或「需要度」 | |
| shrink | No | 有換算時,人少的地方往平均拉;預設 true(同網站),false = 看原始的率 |