Meshagent tools are passed a ToolContext which contains a variety of information that may be of use to the tool:

PropertyDescription
rooma room client that can be used to interact with the room or other participants in the room
callerthe participant who called the tool
on_behalf_ofif the tool was called by an agent that was acting on behalf of a user, the participant who invoked the agent
caller_contextan optional dictionary of caller specific context data, this can be used to provide custom context data to the tool. For instance, this can be used for allowing agent based tools to receive the current chat context for implementing patterns such as handoffs.