MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / current_time

Function current_time

examples/managed-agents-worker-dispatch.py:43–45  ·  view source on GitHub ↗

Return the host's current local time as an ISO-8601 string.

()

Source from the content-addressed store, hash-verified

41# runs alongside the built-in agent_toolset tools with no extra wiring.
42@beta_async_tool
43async def current_time() -> str:
44 """Return the host's current local time as an ISO-8601 string."""
45 return datetime.now().isoformat()
46
47
48async def main() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected