DatetimeServerTool - TypeScript SDK

DatetimeServerTool type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

OpenRouter built-in server tool: returns the current date and time

Example Usage

1import { DatetimeServerTool } from "@openrouter/sdk/models";
2
3let value: DatetimeServerTool = {
4 type: "openrouter:datetime",
5};

Fields

FieldTypeRequiredDescriptionExample
parametersmodels.DatetimeServerToolConfigConfiguration for the openrouter:datetime server tool{"timezone": "America/New_York"}
typemodels.DatetimeServerToolType✔️N/A