TimezoneTool

Get current time for any timezone/city using pytz - reliable local computation.

Constructor


TimezoneTool(self)
            

Methods

get_schema

Return the tool call schema.


get_schema(self) -> str
                    

get_usage_examples

Return example usage patterns.


get_usage_examples(self) -> List[str]
                    

run

Get current time for a location. Args: location: City name or timezone (e.g., "New York", "America/New_York", "Europe/London") Returns: Time data including local time, timezone, UTC offset


run(self, location: str) -> Dict[str, Any]
                    

validate_and_run

Validate parameters then run the tool.


validate_and_run(self, **kwargs: Any) -> Dict[str, Any]