image_set_channel

设置彩色图像中某一个给定索引的通道图像。仅用于彩色图像。 输入的通道图像应为灰度图,尺寸与当前的彩色图像相同。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 设置通道后的图像结果 Set the channel of the given index to the input grayscale image. This function is only for a color image. The input channel image should be a grayscale image of the same size as the current co...

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

What image_set_channel does on Leaper Vision Toolkit

AI agents use image_set_channel 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
imageUrl string 当前图像的url地址,通过这个地址获取到输入图像
channelIdx integer 输入的通道索引,可为 0,1 或 2
channelImageUrl string 通道图像的url地址,通过这个地址获取到通道图像

Parameters from the server's own tool schema.

Why image_set_channel needs a policy

This tool modifies image data reversibly by updating specific color channels in an image. It creates a new image with altered channel data, which is a write operation. The severity is medium because while the modification is reversible (the original image is not destroyed), misuse could produce corrupted or unintended visual output, and repeated application could degrade image quality.

From the tool's definition The tool description states it 'Set[s] the channel of the given index to the input grayscale image' and 'Returns...The image result after setting the channel.' This modifies image data by replacing color channels.

Questions about image_set_channel

What does the image_set_channel tool do? +

设置彩色图像中某一个给定索引的通道图像。仅用于彩色图像。 输入的通道图像应为灰度图,尺寸与当前的彩色图像相同。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 设置通道后的图像结果 Set the channel of the given index to the input grayscale image. This function is only for a color image. The input channel image should be a grayscale image of the same size as the current color image. Returns a serialized JSON string containing the following fields: ResultImg: The image result after setting the channel. 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_channel accept? +

image_set_channel accepts 3 parameters: imageUrl, channelIdx, channelImageUrl. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on image_set_channel? +

Register the Leaper Vision Toolkit MCP server in PolicyLayer and add a rule for image_set_channel: 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_channel? +

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

Can I rate-limit image_set_channel? +

Yes. Add a rate_limit block to the image_set_channel 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_channel completely? +

Set action: deny in the PolicyLayer policy for image_set_channel. 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_channel? +

image_set_channel 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.