From 0c834c81365ee6e2259c4a93009ac241941aecdb Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 26 Sep 2026 08:02:35 +0200 Subject: Add weather tool on OpenWeatherMap, reusing the conky cache for home A bare city name is ambiguous for the API (plain "Rome" and "Roma" both resolve to Rome, US), so the parameter asks the model for City,CC and the output names the country. Co-Authored-By: Claude Opus 5.5 --- examples/tools/weather.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/tools/weather.toml (limited to 'examples/tools/weather.toml') diff --git a/examples/tools/weather.toml b/examples/tools/weather.toml new file mode 100644 index 0000000..ddf3f8e --- /dev/null +++ b/examples/tools/weather.toml @@ -0,0 +1,13 @@ +description = "Weather now, or the forecast for today or tomorrow. Leave place empty for the user's home." +command = ["weather.sh", "{place}", "{when}"] +timeout = 12 +announce.it = ["Controllo il meteo.", "Vediamo che tempo fa."] +announce.en = ["Checking the weather.", "Let me check the weather."] + +[params.place] +type = "string" +description = "City and ISO country code, e.g. Rome,IT or Paris,FR (a bare name can match a town in another country). Empty for home." + +[params.when] +type = "string" +description = "now, today or tomorrow. Empty for now." -- cgit v1.2.3