generate_link_preview
Generate a link preview from a URL by extracting title, description, and thumbnail. Uploads the thumbnail as an AT Protocol blob for use as an external embed in posts.
Instructions
Generate a link preview with title, description, and thumbnail for a given URL. Fetches the target page, extracts Open Graph / meta tags, optionally downloads and uploads the og:image thumbnail as an AT Protocol blob, and returns a preview object ready to attach as an external embed to a create_post or create_thread call. Requires authentication (app password). Use this tool before create_post when you want a rich URL card; use upload_image or upload_video for local media instead. Subject to per-tool rate limiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Fully-qualified HTTP or HTTPS URL of the webpage to preview. SSRF-safe: private/internal IP ranges and non-HTTP schemes are rejected. The server fetches up to 2 MB of the page HTML and up to 1 MB for the og:image thumbnail. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Whether the preview was generated successfully. | |
| message | Yes | Human-readable status message. | |
| preview | Yes | Link preview data suitable for use as an AT Protocol external embed. |