将图像中给定区域内的像素设置为指定的灰度值。 灰度值取值范围0-255,越低则越黑,越高则越白,0则为黑色,255是白色。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 设置灰度后的图像结果 Set the pixels in the given region of the image to the specified grayscale value. Gray value range is 0-255, lower values are darker, higher values are lighter, 0 is black, 255 is white....
AI agents use image_set_to 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
imageUrl | string | — | 当前图像的url地址,通过这个地址获取到输入图像 |
grayValue | integer | — | 灰度值,取值范围0-255,越低则越黑,越高则越白,0则为黑色,255是白色 |
regionJson | string | — | 指定的Roi区域。如果用户没有指定区域,请直接传入 "null"。 如果用户指定区域,传入一个序列化的JSON字符串,属性包括:LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前处理的MCP工具的返回值中获取。LpvCl |
Parameters from the server's own tool schema.
This tool creates a modified version of an image by changing pixel values in a defined area. The modification is reversible in principle (the original image data can be retained and the operation re-run with different parameters), making it a Write operation rather than Destructive.
From the tool's definition Tool description states it 'sets pixels in the given region of the image to the specified grayscale value' and returns 'the image result after setting grayscale'. This modifies image data by overwriting pixel values within a specified region.
Attacks that exploit this kind of access
将图像中给定区域内的像素设置为指定的灰度值。 灰度值取值范围0-255,越低则越黑,越高则越白,0则为黑色,255是白色。 返回结构是一个序列化的JSON字符串,包含以下字段: ResultImg: 设置灰度后的图像结果 Set the pixels in the given region of the image to the specified grayscale value. Gray value range is 0-255, lower values are darker, higher values are lighter, 0 is black, 255 is white. Returns a serialized JSON string containing the following fields: ResultImg: The image result after setting grayscale. 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.
image_set_to accepts 3 parameters: imageUrl, grayValue, regionJson. The full parameter table on this page comes from the server's own tool schema.
Register the Leaper Vision Toolkit MCP server in PolicyLayer and add a rule for image_set_to: 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.
image_set_to is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the image_set_to 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.
Set action: deny in the PolicyLayer policy for image_set_to. 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.
image_set_to 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.
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 →