erpnext_add_time_log
Add a time log entry to an existing draft ERPNext timesheet by specifying activity type, hours, and optional task, project, or time range.
Instructions
Add time log to existing draft timesheet
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": {
"timesheet": "<timesheet>",
"activity_type": "<activity_type>",
"hours": "<hours>"
},
"name": "erpnext_add_time_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | Task (optional) | |
| hours | Yes | Hours worked | |
| project | No | Project (optional) | |
| to_time | No | End time | |
| from_time | No | Start time | |
| timesheet | Yes | Timesheet ID | |
| description | No | Description | |
| activity_type | Yes | Activity type |