get_current_time
Retrieve the current date and time in a standardized format using this utility, ensuring accurate timestamping for your processes.
Instructions
返回当前的日期和时间
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:33-35 (handler)The inline handler function for the 'get_current_time' tool, which returns the current date and time as an ISO string in a text content block.server.tool("get_current_time", "返回当前的日期和时间", {}, async () => ({ content: [{ type: "text", text: new Date().toISOString() }], }));
- src/index.ts:33-35 (registration)Registers the 'get_current_time' MCP tool using server.tool, with Chinese description, empty input schema ({}), and inline handler.server.tool("get_current_time", "返回当前的日期和时间", {}, async () => ({ content: [{ type: "text", text: new Date().toISOString() }], }));