previewglow

v0.1.0
io.github.CloudCorpRecords/previewglow Checked 2 days ago Published 28 days ago

Link previews and OG images: scan pages, render templates, create short links, read click stats.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan_url

Scan a public web page and report its link-preview (Open Graph / Twitter Card) metadata, previews per platform, and issues with fix suggestions. Use it to answer 'why does my link preview look wrong?'.

ParameterTypeDescription
url *stringThe public web page URL to scan for link-preview (Open Graph / Twitter Card) metadata.

generate_og_image

Render a 1200x630 Open Graph image from a template id (see list_templates) and text params such as title and subtitle. Returns the permanent image URL to put in og:image, and whether it was already cached. Optional exp (Unix seconds, paid plans) makes the signed URL expire; leave it out for an og:image URL.

ParameterTypeDescription
templateId *stringThe id of the template to render (see list_templates).
expintegerExpiry for the signed image URL, in Unix seconds (paid plans); leave it out for a permanent og:image URL.
paramsobjectText values for the template's placeholders, such as title and subtitle, keyed by placeholder name.

create_template_from_url

Use AI to design a new OG image template from a website's brand (logo, colors, fonts) taken from a URL. Returns the chosen layoutId (a built-in template id usable with generate_og_image), the variables to pass, and the extracted brand kit. Counts against the plan's AI quota.

ParameterTypeDescription
url *stringThe URL of the website whose brand (logo, colors, fonts) the new template is designed from.

list_templates

List the OG image templates the workspace can render (built-in and custom) with id, name, version and dimensions. Call this before generate_og_image to pick a templateId.

refresh_preview

Force social platforms to re-fetch a page's link preview after you changed its OG tags or image: bumps the og:image cache-buster, re-scrapes Facebook, and returns the LinkedIn Post Inspector link and the X cache note.

ParameterTypeDescription
url *stringThe URL of the page whose link preview social platforms should re-fetch.