Use WebMCP for AI agent integration
mainplaceholders.dev implements the draft WebMCP navigator.modelContext API. This allows AI agents to interact with the service via tools without manual setup. The tools are implemented in public/webmcp.js and perform URL construction locally in the browser.
Available WebMCP Tools
generate_placeholder_image_url: Builds a validated image URL from API options and returns HTML/Markdown snippets. It validates inputs (e.g., rejecting unparseable colors) and renders the result on the page.explain_placeholder_image_url: Deconstructs an existing URL into its constituent options, resolves defaults, and identifies ignored parameters.