You can make use of placeholders while triggering a webhook for viewing the latest note added to a ticket.
Placeholder for the last public note is {{ticket.latest_public_comment}}
Placeholder for the last private note is {{ticket.latest_private_comment}}