uselink_publish_with_assets
Publish an HTML document to uselink by uploading local images as assets, rewriting img src to CDN URLs, and saving the updated HTML. Returns the public URL.
Instructions
One-shot publish: create a draft document, upload every local referenced in the HTML as an asset, rewrite the HTML to point to CDN URLs, save the rewritten HTML to the document, and publish it. Returns the public URL plus a list of assets uploaded and any rewrites applied. Use this when you have an HTML document with relative image paths and want to publish it to uselink in a single step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Full HTML content; may contain local <img src> paths | |
| title | No | Document title (optional) | |
| assets_dir | No | Base directory for resolving relative image paths. Defaults to the current working directory. |