Session Heartbeat
heartbeatSend session activity signals to keep an MCP session alive and optionally record its current task.
Instructions
Send a heartbeat to keep the session active and optionally update current task.
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": {
"sessionId": "<sessionId>"
},
"name": "heartbeat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID | |
| currentTask | No | What the session is currently working on |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| acknowledged | Yes | ||
| pendingUpdates | Yes |