Skip to main content
Glama

post-patch-inferences

Apply image patches to modify assets by merging or erasing content using specified positions and modes within the Scenario.com MCP Server.

Instructions

Patch an asset with an image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originalAssetsNoIf set to true, returns the original asset without transformation
dryRunNo
patchNo
imageYesThe input image as a data URL (example: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=") or the asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw")
backgroundColorNoThe background color as an hexadecimal code (ex: "#FFFFFF"), an html color (ex: "red") or "transparent" if "format" is "png". Default to "white"
formatNoThe output format. Default to "png"
positionNo
allowOverflowNoWhether to allow the merged image to extend the size of the original (when x or y are negative or merged image is bigger)
cropNo

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pasie15/scenario.com-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server