時間長度人話化
tw_duration_humanize
通用MIT
秒數 → 人類可讀(中文/英文)。例: 7325 → "2 小時 2 分鐘 5 秒" / "2h 2m 5s"。
輸入 schema
{
"properties": {
"seconds": {
"title": "Seconds",
"type": "number"
},
"language": {
"default": "zh-tw",
"enum": [
"zh-tw",
"en"
],
"title": "Language",
"type": "string"
}
},
"required": [
"seconds"
],
"title": "duration_humanizeArguments",
"type": "object"
}呼叫方式
配置好 Twinkle Hub 的 MCP client 後,agent 會看到 tw_duration_humanize。直接讓它呼叫即可,例如:
# Ask Claude / any MCP client: 請用 tw_duration_humanize 處理 "…"。 # It will call: tw_duration_humanize(input="…")
尚未設定 Client?
Claude Desktop 約 3 分鐘即可完成設定 — 下載 .mcpb 檔案並雙擊即可,或參閱文件中的各 Client 安裝步驟。
查看使用者設定文件