Record Coding Activity
ntime_heartbeatUse this when you need to record a coding activity signal. It starts a coding session for the project or selected work item when none is open, or extends the existing session. With parallel timers disabled, starting a session stops another running timer. An idle session closes at its last signal, and writes are limited to once per project per minute.
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": {
"project": "<project>"
},
"name": "ntime_heartbeat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File currently being edited, if any. | |
| type | No | Activity type for a new session. Defaults to coding. | |
| work | No | Work item that receives the signal. Defaults to the project-named work item. | |
| project | Yes | Project name, normally the Git repository root directory. | |
| idleMinutes | No | Minutes without a signal before a new session closes. Defaults to 30; zero disables idle closing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| project | Yes | ||
| session | No | ||
| coalesced | Yes | ||
| nextWriteAt | Yes |