A custom wrapper is a service you host. Leadtime wakes it up with a signed webhook, and the wrapper runs the actual agent. This keeps session reporting separate from normal task actions.

A session id and trigger information: assignment or task mention.
Current task context, comments, task history, and guidance instructions.
API base URLs and signature headers so you can verify the webhook before doing work.
Session status: running, completed, cancelled, or failed.
Progress logs and final result text for the task history UI.
Errors that should be visible to users and developers.
Use the bot token for ordinary Leadtime API calls such as reading the task, writing comments, and changing status. The session API is only for session status and logs.
Start from the example wrapper on GitHub: https://github.com/workcio/leadtime-agent-wrapper-example.