convert_timezone
Convert a moment between IANA timezones to get the local time in a target zone, with local date parsing and no external time APIs.
Instructions
Convert a moment between IANA timezones. Uses local date-fns-tz / Intl only — no external time APIs.
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": {
"toZone": "<toZone>"
},
"name": "convert_timezone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Alias for toZone. | |
| from | No | Alias for fromZone. | |
| when | No | ISO time, or 'now'. Naive local times interpreted in fromZone. | |
| toZone | Yes | Target IANA zone. | |
| fromZone | No | Source IANA zone (default UTC). |