Hash Health — personal nutrition tracking, meal logging, medication management, and daily health dashboard. Use when user mentions food, meals, eating, logging, nutrition, calories, macros, medications, or health tracking.
技能名称: hash-health
详细描述:
你已连接到 Hash Health,一个个人营养与健康追踪平台。
所有数据都会发送到用户自己的 Hash Health 账户。没有任何数据会发送给第三方。
收到食物图片(用户发送照片):
收到食物文本(我吃了X、记录X、保存X):
唯一暂停点: 在 detectIngredients 返回后,显示列表并等待是/保存/看起来不错的回复,然后再调用 analyze_food。
永远不要:
在任何请求之前,不带参数调用 hashgetdaily_nutrition。如果出现身份验证错误 → 告诉用户:
在 OpenClaw 设置中设置你的 HASHHEALTHTOKEN。从 Hash Health 应用 → 设置 → 高级 → 生成 API 密钥获取。
POST https://hash-claude-mcp.vercel.app/api/mcp
Authorization: Bearer $HASHHEALTHTOKEN
Content-Type: application/json
Accept: application/json, text/event-stream
所有调用都使用 JSON-RPC:
json
{
jsonrpc: 2.0,
method: tools/call,
params: { name: <工具名称>, arguments: { ... } },
id: 1
}
结果始终在 response.result.content[0].text 中
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashuploadimage,
arguments: {
image_url: <附件URL(如有)>,
imagedataurl:
mime_type: image/jpeg
}
},
id: 1
}
只提供以下之一:imageurl、imagedataurl 或 imagebase64。
保存响应中的 path——稍后你将把它传递给 analyze_food。
将你在图片中看到的所有内容打包到参数中。传递所有食材——如果你传递一个模糊的列表,你会得到一个通用的结果。
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: detectIngredients,
arguments: {
food_name: <你识别的菜品名称>,
ingredients_list: [
米饭 ~200g,
鸡蛋 ~50g,
洋葱 ~30g,
油 ~10g
],
portion_size: <总估计重量,例如 290g>,
visual_notes: <简要描述,例如 碗里的炒饭>
}
},
id: 2
}
逐字显示工具结果中的食材列表,然后询问:
检测到:鸡蛋炒饭
- 1. 米饭(~200g)
- 鸡蛋(~50g)
- 洋葱(~30g)
- 油(~10g)
✅ 确认保存,或者告诉我添加/编辑/删除什么?
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: analyze_food,
arguments: {
food_name: <菜品名称>,
selected_ingredients: [米饭, 鸡蛋, 洋葱, 油],
ingredientsizesg: {
米饭: 200g,
鸡蛋: 50g,
洋葱: 30g,
油: 10g
},
iscustomizedingredients: true,
savetohistory: true,
imagepath: <来自 hashupload_image 步骤的路径>
}
},
id: 3
}
显示:菜品名称、卡路里、蛋白质、碳水化合物、脂肪。确认已保存 ✅
重要提示: selectedingredients 是一个名称数组。ingredientsizesg 是一个将名称映射到克数字符串的对象。永远不要在 analyzefood 中使用 ingredients_list。
触发词: 记录X、我吃了X、保存X、追踪X——立即调用,不要询问。
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashanalyzeand_log,
arguments: {
food_name: <菜品名称和描述>,
save: true,
language: en
}
},
id: 1
}
显示:菜品名称、卡路里、蛋白质、碳水化合物、脂肪。确认已保存。
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashgetdaily_nutrition,
arguments: { date:
},
id: 1
}
显示:卡路里、蛋白质(克)、碳水化合物(克)、脂肪(克)、纤维(克)、连续天数。
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashdailydashboard,
arguments: { date:
},
id: 1
}
查看餐食历史
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashgetmeal_history,
arguments: {
limit: 10,
date:
}
},
id: 1
}
对 analysis 字段进行 JSON.parse——请参阅下面的解析餐食分析数据。
步骤 1 —— 获取餐食 ID:
json
{
jsonrpc: 2.0,
method: tools/call,
params: { name: hashgetmeal_history, arguments: { limit: 20 } },
id: 1
}
步骤 2 —— 确认:删除在[时间]记录的[菜品名称]?
步骤 3 —— 删除:
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashdeletemeal,
arguments: { id:
},
id: 2
}
周报
json
{
jsonrpc: 2.0,
method: tools/call,
params: { name: hashweeklyreport, arguments: {} },
id: 1
}
json
{
jsonrpc: 2.0,
method: tools/call,
params: { name: hashgetmedications, arguments: {} },
id: 1
}
json
{
jsonrpc: 2.0,
method: tools/call,
params: {
name: hashaddmedication,
arguments: {
name: <药物名称>,
dosage: <例如 500mg>,
frequency: <例如 每日两次>,
timeofday: [早晨, 晚上
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 hash-health-1775914801 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 hash-health-1775914801 技能
skillhub install hash-health-1775914801
文件大小: 3.59 KB | 发布时间: 2026-4-12 10:10