- create a generic tool result function
- create a handle_screenshot_result function.
the handle_screenshot_result function should run when the tool name == browser_take_screenshot or browser_snapshot
the handle_screenshot_result function to get the screenshot that the mcp server has taken and render it in a message.
this is how chainlit renders messages with images: