previewglow
v0.1.0Link 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?'.
| Parameter | Type | Description |
|---|---|---|
url * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | The id of the template to render (see list_templates). |
exp | integer | Expiry for the signed image URL, in Unix seconds (paid plans); leave it out for a permanent og:image URL. |
params | object | Text 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.
| Parameter | Type | Description |
|---|---|---|
url * | string | The 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.
create_short_link
Create a short link with its own link preview. Optional custom slug, and optional A/B variants (each with a title, description, imageUrl or templateId) to test which preview gets more clicks. Returns id, shortUrl and variants. Use the id with get_link_stats.
| Parameter | Type | Description |
|---|---|---|
destination * | string | The destination URL the short link redirects to. |
slug | string | A custom slug for the short link: lowercase letters, digits, hyphens and underscores, starting with a letter or digit. |
variants | array | Up to 3 A/B preview variants, each with its own title, description, image or template, to test which preview gets more clicks. |
get_link_stats
Get click analytics for a short link by id (from create_short_link): totals plus breakdowns by day, country, device, browser and referrer. Optional from/to dates (YYYY-MM-DD).
| Parameter | Type | Description |
|---|---|---|
linkId * | string | The id of the short link (from create_short_link) whose click stats should be returned. |
from | string | The first day of the stats window, as a YYYY-MM-DD date. |
to | string | The last day of the stats window, as a YYYY-MM-DD date. |
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL of the page whose link preview social platforms should re-fetch. |