Skip to content
Docs menu

Back to all methods

addWeighInWithTimestamps

write

same raw-value, no-conversion rule as `addWeighIn`; the two timestamps are COUPLED: the local instant resolves from `dateTimestamp` if given (naive strings read as LOCAL time) else from `when` (defaults `new Date()`), and `gmtTimestamp`, when omitted, is derived from THAT resolved instant — never independently from `when`. Both supplied strings are re-formatted rather than forwarded verbatim (a naive `gmtTimestamp` is read as UTC)

addWeighInWithTimestamps(weightValue, unitKey?, dateTimestamp?, gmtTimestamp?, when?)
ParameterTypeOptionalDescription
weightValuenumberno
unitKey"kg" | "lbs"yes
dateTimestampstringyes
gmtTimestampstringyes
whenstring (ISO date-time)yesA moment in time, ISO 8601, e.g. 2026-09-28T07:30:00 (local) or with Z/offset

In Claude this is the add_weigh_in_with_timestamps tool.

Guide: body-composition-weight