erpnext_update_time_log
Update a specific time log in a draft timesheet to edit hours, start/end times, project, activity type, or description. Use it to correct an existing time entry.
Instructions
Update a specific time log in a draft timesheet. Use this to edit hours, times, project, activity type, or description of an existing time entry.
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>",
"time_log_index": "<time_log_index>"
},
"name": "erpnext_update_time_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | New task (optional) | |
| hours | No | New hours worked (optional) | |
| project | No | New project (optional, use empty string to remove) | |
| to_time | No | New end time (YYYY-MM-DD HH:MM:SS) (optional) | |
| from_time | No | New start time (YYYY-MM-DD HH:MM:SS) (optional) | |
| timesheet | Yes | Timesheet ID (e.g., TS-00001) | |
| description | No | New description (optional) | |
| is_billable | No | Is billable? (optional) | |
| activity_type | No | New activity type (optional) | |
| time_log_index | Yes | Index of the time log to update (0-based) |