log_work_sessions
Log work hours for single or multiple work items in a project. Submit sessions with work item ID, hours, optional description and date.
Instructions
Log work time for one or more work items (array-based). Single-item and batch calls use the same interface. Returns unified response with items array, counts, total hours, and per-item errors. Note: Does not include automatic time tracking - use log_work_session for that.
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": {
"sessions": "<sessions>"
},
"name": "log_work_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessions | Yes | Array of work sessions to log (1-100 items) | |
| projectId | No | The project ID (optional if HACKNPLAN_DEFAULT_PROJECT set) |