Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Request upload url
PIXELBIN_MCP_REQUEST_UPLOAD_URLMint a presigned PUT URL so the user's local file can be uploaded to PixelBin storage and used as input to a prediction. Returns `uploadUrl` (the GCS-signed PUT endpoint), `headers` (HTTP headers the PUT must include), a copy-paste curl command, and `hostedUrl` — the public `cdn.pixelbin.io/v2/...` URL the asset is reachable at once the PUT returns 200. **This tool is for LOCAL FILES ON DISK only — when the user has the bytes on their machine and you have a shell/bash/`curl` tool available.** If the user instead has a public URL of the asset, do NOT use this tool — call `upload-asset-from-url` instead, which has PixelBin fetch the URL server-side (no shell, no credentials, no bytes through chat). **Decision rule for upload tools (read first):** - User has a **public URL** (CDN, CloudFront, Drive/Dropbox public, an upstream model's delivery URL): call `upload-asset-from-url` and skip this tool entirely. - User has a **prediction_id** from an MCP `create-prediction` call: call `save-prediction-to-storage`. - User has a **local file on disk** AND you have a shell/bash tool: use this tool, follow the flow below. - User attached the file **inline** (drag-drop / paste) and you have **no** shell tool: ask the user for a public URL (then call `upload-asset-from-url`) or for a local path you can curl from. **Required flow when you have shell access and the user has a local file:** 1. If the user attached the file inline, you cannot read its bytes from your multimodal context — but you can still upload it via this tool. **Ask the user for the absolute local path** (e.g. "What's the absolute path of `wolf.jpg` on your disk? — something like `/Users/you/Pictures/wolf.jpg`"). Do NOT skip this step. 2. Once you have a path, call this tool with just the filename (e.g. `wolf.jpg`). 3. Use your shell tool to execute the returned `curl` command (it's a `PUT` with `--data-binary` and the headers from the response), substituting the user's actual path for `/path/to/<filename>`. 4. After the PUT returns HTTP 200, take the returned `hostedUrl` (the `cdn.pixelbin.io/v2/...` URL) and pass it to `create-prediction.input.image` (or whatever field the chosen operation expects). The raw GCS/S3 presigned URL is **not public** and must not be used as a prediction input. **Sandboxed web runtimes (claude.ai web, ChatGPT web)** typically block outbound calls to cloud-storage hosts, so the PUT step will fail. In those runtimes, ask the user to upload at https://console.pixelbin.io/?redirectTo=storage (deep-links straight to the Storage page) and paste back the public URL, then use `upload-asset-from-url` (or pass the URL directly to `create-prediction`). v1 supports image (jpg/jpeg/png/webp/avif/gif/bmp/tiff/tif/heic/heif), video (mp4/webm/mov/avi/mkv/mpeg/mpg), and pdf formats.
Upload asset from url
PIXELBIN_MCP_UPLOAD_ASSET_FROM_URLIngest a publicly-reachable URL into the user's PixelBin storage. PixelBin fetches the bytes server-side and registers the asset, returning a permanent `cdn.pixelbin.io/v2/...` URL that does NOT expire. **Decision rule for upload tools — read this before choosing:** - The user has a **public URL** (CloudFront, S3 public, Drive/Dropbox set to public, an upstream model's delivery URL): use **this tool**. PixelBin pulls it server-side; no credentials, no shell, no bytes through chat. - The user has a **prediction_id** from an MCP `create-prediction` call: use `save-prediction-to-storage` instead — it specialises for prediction outputs and walks the output array. - The user has a **local file on disk** and you have shell/bash tools available: use `request-upload-url` (it returns a presigned URL + curl snippet for you to PUT bytes from the local path). - The user attached the file inline (drag-drop, paste) and you have NO shell tool: ask for a public URL or for a local path you can use with `request-upload-url`. Returns the permanent `hostedUrl`, `fileId`, and `assetId`. Validates the URL is http/https and not localhost. v1 supports image (jpg/jpeg/png/webp/avif/gif/bmp/tiff/tif/heic/heif), video (mp4/webm/mov/avi/mkv/mpeg/mpg), and pdf.