session_ping
Tracks conversation timing by updating a heartbeat timestamp and returning the interval since the last exchange plus total session duration, helping time-blind models perceive dialogue gaps.
Instructions
会话心跳:每次对话调用一次,更新时间戳并返回距上次对话间隔与本会话总时长,让模型感知对话间隔。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "session_ping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timezone | No | 返回时间所用的 IANA 时区,缺省系统时区 | |
| session_id | No | 会话 id,缺省为 default;同一客户端可固定一个 id 以累计会话时长 |