A unique, immutable URL is generated for the provided HTML content, allowing immediate sharing of a self-contained web page without external hosting.
Construct a self-contained HTML document ensuring all CSS, JS, and images are inline. Verify the HTML size is under 1048576 bytes and the resulting URL will be under 4000 bytes. Send a POST request to https://anew.page/write with the HTML content. Check the response status code; a 200 OK indicates success and the body contains the shareable URL. If a 413 error occurs, the page is too large and must be reduced or compressed. Return the URL verbatim from the response body.
- Category: Productivity and planning
- Effect: Changes data in your accounts
- MCP servers: anew MCP (https://koskamo.com/explore/anew-mcp)
- Source: spec (https://anew.page/)
- Source quote: "A 200 response body is the complete shareable URL; return it verbatim."
- Playbook page: https://koskamo.com/explore/use-cases/publish-self-contained-html-page-via-http
Prompt: Create a simple HTML page with a heading 'Hello World' and inline CSS. Publish it using the HTTP method described in the documentation. Return the resulting URL.