> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gethyvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Media tools

> Images and videos Hyvo makes from your SVG (create_image, create_video), and files into Hyvo: by URL, by file, or through an upload box or link the person opens.

Images and videos Hyvo makes from your SVG (create\_image, create\_video), and files into Hyvo: by URL, by file, or through an upload box or link the person opens. Results, refusals and idempotency: [Tools](https://docs.gethyvo.com/mcp/reference/tools.md).

## create\_video

**Kind:** write · **Scope:** `content:write`

Create a video for a post. Use it whenever you are asked to make, create or generate a video for a post (a Reel, Short, TikTok or story), instead of making a video file yourself: a file in your own code sandbox cannot reach Hyvo, and the person would have to download it and upload it again. Describe the video as scenes, each an SVG frame (text, shapes, gradients, emoji) shown for its seconds; Hyvo draws them and encodes an MP4 (H.264, 30 fps, a silent audio track) in a few seconds, and with `postId` attaches it to that draft, scheduled or failed post (`attached.confirmed`). Shape: the first scene's width and height (longest side kept within 1080 to 1920 px): 1080x1920 for a Reel, Short or TikTok, 1080x1080 square, 1920x1080 landscape. Motion: many short scenes (0.1 to 0.5 s) in which text or shapes move, appear or fade. Up to 60 scenes and 90 seconds; Instagram Reels need at least 3 seconds. Then validate\_post checks the post for each network.

| Argument | Type | Required | Description |
| - | - | - | - |
| `scenes` | array of object (`svg`, `seconds`) | Yes | The video's frames in order |
| `postId` | string | No | Attach the video to this draft, scheduled or failed post |
| `idempotencyKey` | string | No | Any unique string. Repeating a call with the same key returns the first result instead of acting twice |

## create\_image

**Kind:** write · **Scope:** `content:write`

Create an image for a post: a graphic, card, quote, chart or announcement you design as one SVG document (text, shapes, gradients, emoji). Use it whenever you are asked to make, create or design an image for a post, instead of making an image file yourself: a file in your own code sandbox cannot reach Hyvo, and the person would have to download it and upload it again. Hyvo draws it to a JPEG in about a second (longest side 1080 to 2160 px) and with `postId` attaches it to that draft, scheduled or failed post (`attached.confirmed`). Sizes: 1080x1350 portrait feed, 1080x1080 square, 1080x1920 story, 1200x627 LinkedIn or X landscape.

| Argument | Type | Required | Description |
| - | - | - | - |
| `svg` | string | Yes | The image as one SVG document with a width and height |
| `postId` | string | No | Attach the image to this draft, scheduled or failed post |
| `idempotencyKey` | string | No | Any unique string. Repeating a call with the same key returns the first result instead of acting twice |

## upload\_media

**Kind:** write · **Scope:** `content:write`

Use this tool for ALL media uploads. Never use curl, wget or any other command or direct HTTP request to upload: a sandbox blocks them (CONNECT tunnel failed / 403 / agent-proxy), and if you see such an error, stop, do not mention it to the person, and use the ways below. Flow: file -> upload\_media -> media id -> create\_posts / update\_post / validate\_post. An image or video you make yourself is not uploaded: use create\_image or create\_video, never a file from your own code sandbox (it cannot reach Hyvo, and the person would have to download it and upload it again). Ways in: `svg` for a graphic you design (drawn to a JPEG, as create\_image does); `file` for a file the client hands to tools (ChatGPT's attached file, an MCP image or audio content block, an MCP resource with a blob or an https uri, a resource link); `url` for a public https file (Hyvo fetches it); `data` (base64, 8 MB per call, `parts` up to 100 MB) only from code that already holds the bytes. Only for a file the person has themselves (one they attached in a chat that does not hand files to tools, like Claude.ai): call upload\_media with only `postId`; hosts with MCP Apps (Claude.ai) show an upload box where the person drops it, and you are told the media id when it is in. Where no box appears, use get\_upload\_link and give the person its page. Taken: images JPEG, PNG, WebP, AVIF, BMP, TIFF (10 MB), GIF (15 MB), SVG (2 MB, drawn to a JPEG); video MP4, MOV (1 GB), WebM (500 MB), within the plan's video allowance; audio MP3, M4A, OGG (50 MB), WAV (100 MB); PDF (50 MB). The type is read from the bytes; every file is scanned and cleaned. Being stored is not being postable everywhere: validate\_post checks each network (audio posts nowhere on its own; a PDF posts to LinkedIn only; Instagram and Threads take MP4 or MOV video). `postId` attaches the file to a draft, scheduled or failed post; `attached.confirmed` is true only when it is attached. A video may still be processing (`media.status`); it can be attached now and publishing waits for it.

| Argument | Type | Required | Description |
| - | - | - | - |
| `svg` | string | No | A graphic as one SVG document with a width and height; drawn to a JPEG |
| `data` | string | No | The image or video as base64 (a data: prefix is fine), or one part of it |
| `uploadId` | string | No | For a file in parts: one id for all its parts |
| `part` | integer (1–256) | No | For a file in parts: this part's number, from 1 |
| `parts` | integer (2–256) | No | For a file in parts: how many parts in total |
| `sha256` | string | No | With data: the SHA-256 (hex) of the original file. Bytes that differ are refused |
| `postId` | string | No | Attach the file to this draft, scheduled or failed post |
| `file` | object (`download_url`, `file_id`) or object (`type`, `data`, `mimeType`) or object (`type`, `resource`) or object (`type`, `uri`, `mimeType`, `name`) | No | A file the client attached: ChatGPT's file, an MCP image or audio content block, an MCP resource (blob or https uri), or a resource link |
| `url` | string (uri) | No | A public https address of an image, video, audio file or PDF |
| `idempotencyKey` | string | No | Any unique string. Repeating a call with the same key returns the first result instead of acting twice |

## get\_upload\_link

**Kind:** write · **Scope:** `content:write`

Only for a file the person already has (a photo or video on their device), never for one you made: an image or video you make goes in with create\_image or create\_video, attached to the post, with nothing for the person to download or upload. A page the person opens in any browser to upload a photo, video, audio file or PDF to Hyvo: drag and drop, no sign-in, a progress bar, one file, for 15 minutes. Large files go up in parts automatically, so a video can be as large as its format and the plan allow. Use it when the person has a file you cannot pass to upload\_media and no upload box appears in the chat, or when upload\_media did not work twice. Steps: 1. give the person uploadUrl ("Upload your file here: \<link>. I'll pick it up as soon as it's in."); 2. call check\_upload \{ linkId } every 5 seconds, for at most 3 minutes; 3. after 60 seconds of waiting, ask whether they dropped the file; 4. on failed, pass on the reason (they can drop another file on the same page); 5. on uploaded, continue with the media id. `postId` attaches the file to that draft, scheduled or failed post as it arrives; `kind` limits the page to images, video, audio or PDF. Never send the file to the link with a command.

| Argument | Type | Required | Description |
| - | - | - | - |
| `postId` | string | No | Attach the file to this draft, scheduled or failed post when it arrives |
| `kind` | one of `image`, `video`, `audio`, `pdf` | No | Only this kind of file |

## check\_upload

**Kind:** read · **Scope:** `content:write`

Where the file for an upload link (from get\_upload\_link or upload\_media) stands, in one quick read: waiting (nothing sent yet), receiving (arriving now, with progress for a large file sent in parts), uploaded (with the media id, and the attachment when the link named a post), failed (the last file was refused or did not arrive, with the reason; the link still takes another file until it expires) or expired. Call it every 5 seconds, for at most 3 minutes. After 60 seconds of waiting, ask the person whether they dropped the file on the page (the answer says how long the link has left). After 3 minutes, stop calling and ask the person what happened. On failed, tell the person the reason and that they can drop another file on the same page. Reads only.

| Argument | Type | Required | Description |
| - | - | - | - |
| `linkId` | string | Yes | linkId from get\_upload\_link or upload\_media |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.