Stop or discard the timer
goalslot_stop_timerStop a running timer, converting it into a time entry credited to the linked goal. Discard the session to cancel a mistakenly started timer.
Instructions
WRITES. Stops the running timer and converts it into a time entry, or discards it. Stopping is atomic and credits the linked goal, so the goal's logged hours go up by the elapsed minutes. Duration is floored at 1 minute and capped at 12 hours: a session left open overnight writes 12 hours, not the real elapsed time, and the response says so via "capped". discard true writes nothing at all and the elapsed time is lost. Only use it when the user says the timer was started by mistake. Attribution fields sent here override whatever the timer was started with.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes to save on the resulting time entry. | |
| goalId | No | Overrides or sets the goal the time is credited to. | |
| taskId | No | Task id from list_tasks. Never construct or guess an id. | |
| discard | No | Throw the session away without writing any time entry. Only when the user says the timer was a mistake. | |
| taskName | No | Overrides the label the timer was started with. | |
| scheduleBlockId | No | Schedule block id from get_schedule. Never construct or guess an id. |