This guide walks you through connecting Html to image to Mastra AI using the Composio tool router. By the end, you'll have a working Html to image agent that can convert my newsletter html into a png, capture screenshot of this web page url, check how many images i converted today, resize and download image from asset id through natural language commands.
This guide will help you understand how to give your Mastra AI agent real control over a Html to image account through Composio's Html to image MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.









