user_record_activity
Log a user activity event and automatically update last_active_at, enabling retention and activity tracking after key actions by other tools or agents.
Instructions
记录一次用户活跃事件(自动更新 last_active_at)。
供其他工具/Agent 在关键行为后调用,用于留存与活跃度统计。
Args:
activity_type: 事件类型,如 thought / decision / reminder / pattern / search / coaching / report
detail: 事件说明(可选,最多 500 字)
user_id: 用户 ID(默认 local)
Returns:
{recorded: true/false, activity_id}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"activity_type": "<activity_type>"
},
"name": "user_record_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | ||
| user_id | No | local | |
| activity_type | Yes |