image_set_to_color

将图像中给定区域内的像素设置为指定的 RGB 值。仅用于彩色图像。 蓝色通道值范围0-255,绿色通道值范围0-255,红色通道值范围0-255。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 设置颜色后的图像结果 Set the pixels in the given region of the image to the specified RGB value. This function is only for color images. Blue channel value range 0-255, green channel value range ...

Server Leaper Vision Toolkit leaper-mcp/leaper-mcp-proxy
Category Write
Risk class Medium
Parameters 50 required

What image_set_to_color does on Leaper Vision Toolkit

AI agents use image_set_to_color to create or update resources in Leaper Vision Toolkit — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Leaper Vision Toolkit environment.

ParameterTypeRequiredDescription
red integer 红色通道值,范围0-255
blue integer 蓝色通道值,范围0-255
green integer 绿色通道值,范围0-255
imageUrl string 当前图像的url地址,通过这个地址获取到输入图像
regionJson string 指定的Roi区域。如果用户没有指定区域,请直接传入 "null"。 如果用户指定区域,传入一个序列化的JSON字符串,属性包括:LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前处理的MCP工具的返回值中获取。LpvCl

Parameters from the server's own tool schema.

Why image_set_to_color needs a policy

The tool creates or modifies image data by altering pixel color values in a specified region. This is a Write operation—the changes are intentional data modification but are reversible (the original image could be restored). The blast radius is medium because misuse could corrupt or deface images, but no data is permanently destroyed and the operation is not a financial or code execution risk.

From the tool's definition Tool modifies pixels in an image by 'setting' them to specified RGB values ('仅用于彩色图像' / 'for color images'). Returns 'ResultImg: 设置颜色后的图像结果' (image result after setting color). This is a reversible modification of image data, not destructive deletion.

Questions about image_set_to_color

What does the image_set_to_color tool do? +

将图像中给定区域内的像素设置为指定的 RGB 值。仅用于彩色图像。 蓝色通道值范围0-255,绿色通道值范围0-255,红色通道值范围0-255。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 设置颜色后的图像结果 Set the pixels in the given region of the image to the specified RGB value. This function is only for color images. Blue channel value range 0-255, green channel value range 0-255, red channel value range 0-255. Returns a serialized JSON string containing the following fields: ResultImg: The image result after setting color. It is categorised as a Write tool in the Leaper Vision Toolkit MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

What parameters does image_set_to_color accept? +

image_set_to_color accepts 5 parameters: red, blue, green, imageUrl, regionJson. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on image_set_to_color? +

Register the Leaper Vision Toolkit MCP server in PolicyLayer and add a rule for image_set_to_color: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Leaper Vision Toolkit. Nothing to install.

What risk level is image_set_to_color? +

image_set_to_color is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit image_set_to_color? +

Yes. Add a rate_limit block to the image_set_to_color rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block image_set_to_color completely? +

Set action: deny in the PolicyLayer policy for image_set_to_color. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides image_set_to_color? +

image_set_to_color is provided by the Leaper Vision Toolkit MCP server (leaper-mcp/leaper-mcp-proxy). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.