Pixelbin MCP
pixelbin_mcpRemove backgrounds, upscale, edit and generate images and videos, and manage assets in PixelBin storage, through PixelBin's hosted MCP server.
Acciones disponibles (7)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create predictionPIXELBIN_MCP_CREATE_PREDICTIONAcciónStart a PixelBin prediction (e.g. background removal, upscaling, watermark removal, image-to-video, image generation). DO NOT call this without first calling estimate-prediction-cost, presenting the credit cost to the user, getting explicit confirmation, AND passing the returned `confirmation_token` here verbatim — calls without a valid token are rejected server-side. The token is bound to plugin/operation/input; if any of those changes, re-run estimate-prediction-cost.
**Image / video / PDF inputs MUST be public HTTPS URLs.** Raw bytes, base64, and data URLs are NOT supported on this tool — they fail across MCP clients due to envelope-size limits. To obtain a URL when the user has a local file:
• **If you have shell access (Claude Desktop, Claude Code CLI, Codex CLI, Cursor, or anything that can run `curl`):** call `request-upload-url` first, then ask the user for the absolute local path to their file, run the curl command from `request-upload-url`'s response with that path, and pass the resulting `hostedUrl` into `input` here. This is the primary path.
• **If you DO NOT have shell access (claude.ai web, ChatGPT web, or any sandboxed runtime):** ask the user to either (1) upload the file to their PixelBin Console at https://console.pixelbin.io/?redirectTo=storage (deep-links straight to the Storage page) and paste back the resulting URL, or (2) paste a public URL of the image (e.g. a Google Drive / Dropbox / Imgur public link). Then pass that URL into `input` here. Do NOT try to upload from a Python sandbox — sandbox network allowlists block cloud-storage hosts.
Required input fields are validated server-side and missing ones return a clear error — ask the user for the value rather than substituting one. For OPTIONAL input fields (e.g. output_resolution, seed, style, aspect_ratio): inspect the operation's schema via list-predictions(include_schema=true), surface the optional fields the user has not specified, and ASK whether they want to set any of those before calling — do not silently fill optional fields without asking. Async: returns immediately with a workflow id and status=ACCEPTED. Poll with get-prediction.
PIXELBIN_MCP_CREATE_PREDICTIONAcciónStart a PixelBin prediction (e.g. background removal, upscaling, watermark removal, image-to-video, image generation). DO NOT call this without first calling estimate-prediction-cost, presenting the credit cost to the user, getting explicit confirmation, AND passing the returned `confirmation_token` here verbatim — calls without a valid token are rejected server-side. The token is bound to plugin/operation/input; if any of those changes, re-run estimate-prediction-cost. **Image / video / PDF inputs MUST be public HTTPS URLs.** Raw bytes, base64, and data URLs are NOT supported on this tool — they fail across MCP clients due to envelope-size limits. To obtain a URL when the user has a local file: • **If you have shell access (Claude Desktop, Claude Code CLI, Codex CLI, Cursor, or anything that can run `curl`):** call `request-upload-url` first, then ask the user for the absolute local path to their file, run the curl command from `request-upload-url`'s response with that path, and pass the resulting `hostedUrl` into `input` here. This is the primary path. • **If you DO NOT have shell access (claude.ai web, ChatGPT web, or any sandboxed runtime):** ask the user to either (1) upload the file to their PixelBin Console at https://console.pixelbin.io/?redirectTo=storage (deep-links straight to the Storage page) and paste back the resulting URL, or (2) paste a public URL of the image (e.g. a Google Drive / Dropbox / Imgur public link). Then pass that URL into `input` here. Do NOT try to upload from a Python sandbox — sandbox network allowlists block cloud-storage hosts. Required input fields are validated server-side and missing ones return a clear error — ask the user for the value rather than substituting one. For OPTIONAL input fields (e.g. output_resolution, seed, style, aspect_ratio): inspect the operation's schema via list-predictions(include_schema=true), surface the optional fields the user has not specified, and ASK whether they want to set any of those before calling — do not silently fill optional fields without asking. Async: returns immediately with a workflow id and status=ACCEPTED. Poll with get-prediction.
Parámetros de entrada
inputobjectObligatorioOperation-specific JSON input. Discoverable via list-predictions(include_schema=true). Image/video/PDF inputs (e.g. 'image', 'url', 'images') must be PUBLIC HTTPS URLs reachable by PixelBin. Raw bytes / base64 / data URLs are NOT supported here — see the create-prediction tool description for how to obtain a URL when the user has a local file.
pluginstringObligatorioPlugin id from list-predictions (e.g. 'erase').
operationstringObligatorioOperation id under the plugin (e.g. 'bg').
confirmation_tokenstringToken returned by estimate-prediction-cost. REQUIRED unless the deployment disables the gate. Pass through verbatim — its signature is verified server-side and bound to the same plugin/operation/input you pass here.
Parámetros de salida
Sin parámetros.
Estimate prediction costPIXELBIN_MCP_ESTIMATE_PREDICTION_COSTAcciónEstimate the credits a PixelBin prediction will consume BEFORE running it. ALWAYS call this first for any create-prediction request. Returns creditsPerOperation, totalCredits, AND a `confirmation_token` that create-prediction REQUIRES. Present the credit cost to the user; once they confirm, pass `confirmation_token` (verbatim) into create-prediction. The token is bound to plugin/operation/input — if the user changes their mind about any of those, re-run estimate-prediction-cost to get a fresh token. For fixed-cost plugins, 'inputs' may be omitted; for plugins where cost depends on the input (e.g. video duration, page count), pass the same 'inputs' you would pass to create-prediction.input so the token's input-hash matches.
PIXELBIN_MCP_ESTIMATE_PREDICTION_COSTAcciónEstimate the credits a PixelBin prediction will consume BEFORE running it. ALWAYS call this first for any create-prediction request. Returns creditsPerOperation, totalCredits, AND a `confirmation_token` that create-prediction REQUIRES. Present the credit cost to the user; once they confirm, pass `confirmation_token` (verbatim) into create-prediction. The token is bound to plugin/operation/input — if the user changes their mind about any of those, re-run estimate-prediction-cost to get a fresh token. For fixed-cost plugins, 'inputs' may be omitted; for plugins where cost depends on the input (e.g. video duration, page count), pass the same 'inputs' you would pass to create-prediction.input so the token's input-hash matches.
Parámetros de entrada
countintegerNumber of times this operation will run. Defaults to 1.
inputsobjectOperation-specific inputs that affect the cost (e.g. duration for video operations). Same shape as create-prediction.input. Optional for fixed-cost plugins.
pluginstringObligatorioPlugin id from list-predictions (e.g. 'erase').
operationstringObligatorioOperation id under the plugin (e.g. 'bg').
Parámetros de salida
Sin parámetros.
Get predictionPIXELBIN_MCP_GET_PREDICTIONAcciónPoll a PixelBin prediction by id. Returns status (ACCEPTED/RUNNING/SUCCESS/FAILURE) and, on SUCCESS, the result URL(s) as text plus one resource_link content block per output. The result URL is hosted for ~30 days; if the user wants it permanently, call save-prediction-to-storage with the prediction id. Surface the URL and the retention notice to the user.
PIXELBIN_MCP_GET_PREDICTIONAcciónPoll a PixelBin prediction by id. Returns status (ACCEPTED/RUNNING/SUCCESS/FAILURE) and, on SUCCESS, the result URL(s) as text plus one resource_link content block per output. The result URL is hosted for ~30 days; if the user wants it permanently, call save-prediction-to-storage with the prediction id. Surface the URL and the retention notice to the user.
Parámetros de entrada
prediction_idstringObligatorioThe prediction workflow id returned by create-prediction.
Parámetros de salida
Sin parámetros.
List predictionsPIXELBIN_MCP_LIST_PREDICTIONSAcciónList PixelBin prediction plugins/operations available to call. Returns a flat catalog (`items`), a per-category grouping (`byCategory`), and the curated recommendations map (`recommendations`). Each item carries `displayName`, `dotForm` (`plugin.operation`, what create-prediction expects), `categories`, and `minCredits`/`maxCredits` (the range; equal when the plugin is fixed-cost). When the user's intent maps to a category in `byCategory`, present **every** option in that category to the user with its credit cost (e.g. `nanoBananaPro.generate (Nano Banana Pro) — 2 cr`), call out the recommended one, and ASK which one to use before calling create-prediction. Use public HTTPS URLs for image/video/PDF inputs to create-prediction. Inline data URLs, base64, and raw file bytes are not supported by this MCP workflow.
PIXELBIN_MCP_LIST_PREDICTIONSAcciónList PixelBin prediction plugins/operations available to call. Returns a flat catalog (`items`), a per-category grouping (`byCategory`), and the curated recommendations map (`recommendations`). Each item carries `displayName`, `dotForm` (`plugin.operation`, what create-prediction expects), `categories`, and `minCredits`/`maxCredits` (the range; equal when the plugin is fixed-cost). When the user's intent maps to a category in `byCategory`, present **every** option in that category to the user with its credit cost (e.g. `nanoBananaPro.generate (Nano Banana Pro) — 2 cr`), call out the recommended one, and ASK which one to use before calling create-prediction. Use public HTTPS URLs for image/video/PDF inputs to create-prediction. Inline data URLs, base64, and raw file bytes are not supported by this MCP workflow.
Parámetros de entrada
categoriesstringOptional comma-separated categories (e.g. 'image-to-video,text-to-image').
include_schemabooleanInclude each plugin's input JSON Schema in the response.
Parámetros de salida
Sin parámetros.
Request upload urlPIXELBIN_MCP_REQUEST_UPLOAD_URLAcciónMint 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.
PIXELBIN_MCP_REQUEST_UPLOAD_URLAcciónMint 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.
Parámetros de entrada
pathstringOptional folder path inside the user's PixelBin storage where the asset should land (e.g. 'mcp-uploads/'). Defaults to the org's root.
accessstringenumAccess level for the uploaded asset. Defaults to 'public-read' since prediction inputs need to be fetchable by PixelBin.
public-readprivatefilenamestringObligatorioName of the file you'll upload (e.g. 'photo.jpg', 'clip.mp4', 'doc.pdf'). Must include an extension. Supported: image (jpg/jpeg/png/webp/avif/gif/bmp/tiff/tif/heic/heif), video (mp4/webm/mov/avi/mkv/mpeg/mpg), or pdf.
overwritebooleanIf true, replace any existing asset at the same path/name. Defaults to false.
Parámetros de salida
Sin parámetros.
Save prediction to storagePIXELBIN_MCP_SAVE_PREDICTION_TO_STORAGEAcciónPersist a prediction's output to the user's PixelBin storage so the URL stops expiring after ~30 days. Takes a `prediction_id`, fetches the prediction's result URL(s), and registers each one as a permanent asset via PixelBin's URL ingest. Returns the resulting permanent `cdn.pixelbin.io/v2/...` URLs. Only works for SUCCESS predictions. Use this when the user asks to keep / save / archive a result that an MCP `create-prediction` call has just returned.
**Decision rule for upload/persist tools:**
- User has a **prediction_id** from an MCP `create-prediction` call → use **this tool**.
- User has a **public URL** that didn't come from an MCP prediction (e.g. an upstream model delivery URL, a Drive link, a screenshot URL): use `upload-asset-from-url`. Do NOT ask for credentials or write a script — `upload-asset-from-url` does the same server-side ingest this tool does, just for arbitrary URLs.
- User has a **local file on disk** and you have shell access: use `request-upload-url` (presigned PUT + curl).
PIXELBIN_MCP_SAVE_PREDICTION_TO_STORAGEAcciónPersist a prediction's output to the user's PixelBin storage so the URL stops expiring after ~30 days. Takes a `prediction_id`, fetches the prediction's result URL(s), and registers each one as a permanent asset via PixelBin's URL ingest. Returns the resulting permanent `cdn.pixelbin.io/v2/...` URLs. Only works for SUCCESS predictions. Use this when the user asks to keep / save / archive a result that an MCP `create-prediction` call has just returned. **Decision rule for upload/persist tools:** - User has a **prediction_id** from an MCP `create-prediction` call → use **this tool**. - User has a **public URL** that didn't come from an MCP prediction (e.g. an upstream model delivery URL, a Drive link, a screenshot URL): use `upload-asset-from-url`. Do NOT ask for credentials or write a script — `upload-asset-from-url` does the same server-side ingest this tool does, just for arbitrary URLs. - User has a **local file on disk** and you have shell access: use `request-upload-url` (presigned PUT + curl).
Parámetros de entrada
pathstringOptional folder path inside the user's PixelBin storage where the saved asset(s) should land (e.g. 'predictions/'). Defaults to the org's root.
accessstringenumAccess level for the persisted asset. Defaults to 'public-read'.
public-readprivateprediction_idstringObligatorioThe prediction workflow id whose output you want persisted permanently. Get this from create-prediction or get-prediction.
Parámetros de salida
Sin parámetros.
Upload asset from urlPIXELBIN_MCP_UPLOAD_ASSET_FROM_URLAcciónIngest 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.
PIXELBIN_MCP_UPLOAD_ASSET_FROM_URLAcciónIngest 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.
Parámetros de entrada
urlstringObligatorioPublic HTTPS URL of the asset to ingest. PixelBin fetches this server-side, so the URL must be reachable without auth (e.g. a CloudFront delivery URL, a public S3 object, a signed URL valid at fetch time). Data URLs and localhost URLs are rejected.
namestringOptional asset filename (without extension). If omitted, derived from the URL's last path segment.
pathstringOptional folder path inside the user's PixelBin storage where the asset should land (e.g. 'mcp-uploads/'). Defaults to the org's root.
accessstringenumAccess level for the registered asset. Defaults to 'public-read'.
public-readprivateformatstringOptional file format override. If omitted, derived from the URL's extension. Must be one of the supported image/video/pdf formats.
overwritebooleanIf true, replace any existing asset at the same path/name. Defaults to false.
Parámetros de salida
Sin parámetros.