Overview
current_time is a built-in gizzi tool. Models do not know what time it is, so they call it when the answer depends on the clock: “today”, “tomorrow at 9”, a deadline, a reminder, a schedule. It takes no required input and changes nothing, so it is allowed in plan mode.
What it returns
An optional
time_zone argument asks for a specific zone.
Which zone it uses
The tool picks the first zone that exists:- The
time_zoneargument. - The
time_zonethe client sent with this turn. - The last zone any client sent for this session.
- The zone of the machine the runtime runs on, labelled as the machine zone, because it may not be where the person is.
The environment line
Every turn’s environment block carries aTime zone: line with the zone from step 2 or 3, so a model that never calls the tool still reads dates in the person’s zone. When no client zone is known the line shows the machine zone, labelled.
Every client sends it
time_zone is one of the three client hints described on System prompts.
A value that is not a valid IANA zone is ignored.